cocoapods-binary icon indicating copy to clipboard operation
cocoapods-binary copied to clipboard

pre-built-binary won't be created if xcodeproj does not contain `Release` configuration.

Open muukii opened this issue 5 years ago • 4 comments

To solve, add Release configuration. even we don't use in mainly. just for creating pre-built-binary.

muukii avatar Dec 06 '20 14:12 muukii

@muukii How can you add it automatically? What I experienced is for some pods there's Release configuration and some doesn't have and it built the .framework in a wrong location + doesn't have Bundle Id (due to lack of configration). The fix for me was to change the configuration https://github.com/leavez/cocoapods-binary/blob/master/lib/cocoapods-binary/rome/build_framework.rb#L4 to Debug. Screen Shot 2021-01-07 at 18 15 00

azilbershtein avatar Jan 07 '21 17:01 azilbershtein

@azilbershtein

add Release configuration

Sorry missing words, I mean 'Adds Release configuration into main project (it's not Pods project)`

CocoaPods creates targets according to your project's configurations. If your project has targets (A,B,C), Pods also would have configurations (A,B,C) each target.

Let me check your current status, does your project have Release configuration?

(your project means it has Application target.)

muukii avatar Jan 08 '21 04:01 muukii

@muukii No, but as you can see on the left pod it created two configurations: "Enterprise DEBUG" and "Release" (don't have either of them in my target) and those config doesn't have a bundle Id. I'm just wondering.. why is that? It's not something that should be specified in the podspec? (there's nothing about configs there

Thanks for your answer!

azilbershtein avatar Jan 09 '21 21:01 azilbershtein

We had this issue, and found out that it's due to a CocoaPods issue so raised it there: https://github.com/CocoaPods/CocoaPods/issues/10674

ben8987 avatar Jun 09 '21 05:06 ben8987