leavez / cocoapods-binary

integrate pods in form of prebuilt frameworks conveniently, reducing compile time
MIT License
1.3k stars 207 forks source link

Prebuild failed for mac and xcode beta #94

Open cstlex opened 4 years ago

cstlex commented 4 years ago
   CocoaPods : 1.7.5
       Xcode : 11.0 (11M392r)
cocoapods-binary      : 0.4.4
plugin 'cocoapods-binary'

This might be issue with Catalina Beta with XCode 11 beta, when Alamofire is added, pod install stops without any error or warning.

this might be a bug in Catalina Beta since it is fine with Mojave with XCode 11 Beta.

And I could not find a way to get a build log of this.

test.zip

hardik-plume commented 4 years ago

We are also facing this problem on 2 of the 10 dev machines we have and there is no error to go off of.

Tims-MacBook-Pro-2:plume-ios timhepner$ pod install
🚀  Prebuild frameworks
Analyzing dependencies
Downloading dependencies
Generating Pods project
Prebuild frameworks (total 32)
Prebuilding Alamofire...
Tims-MacBook-Pro-2:plume-ios timhepner$ 

We are no more on Xcode beta but rather Xcode11

hardik-plume commented 4 years ago

@leavez any idea?

cstlex commented 4 years ago

Now XCode is not beta but catalina is.

I would like to fix it myself but still struggling.

DamienLevel commented 4 years ago

Same problem for me 😢

zh-se commented 4 years ago

have the same issue with XCode 10.3 This PR fixes the issue for me

if someone interested how to try it just add gem "cocoapods-binary", :git => 'https://github.com/AliSoftware/cocoapods-binary.git', :branch => 'master' to the Gemfile and then run bundle install

hardik-plume commented 4 years ago

Why is this pr not merged then?

cstlex commented 4 years ago

I don't think this completely fixes the issue

Build settings from command line:
    BITCODE_GENERATION_MODE = bitcode
    SDKROOT = iphoneos13.1

note: Using new build system
2019-10-01 02:38:47.117 xcodebuild[9087:417089] unable to create build operation: Error Domain=com.apple.xcbuild Code=1 "unknown error while handling message: missingTarget(guid: "72a971f00eaf9bd8704f6b7f1e9b2e98758cc842172da540ffb591e63e38dc1e")" UserInfo={NSLocalizedDescription=unknown error while handling message: missingTarget(guid: "72a971f00eaf9bd8704f6b7f1e9b2e98758cc842172da540ffb591e63e38dc1e")}
Verify final result code for completed build operation
Build operation failed without specifying any errors. Individual build tasks may have failed for unknown reasons.
One possible cause is if there are too many (possibly zombie) processes; in this case, rebooting may fix the problem.
Some individual build task failures (up to 12) may be listed below.

This error shows up when I change the xcodebuild function in build_framework.rb at lib/cocoapods-binary/rome/ to print all the build logs

cstlex commented 4 years ago

I know this makes no sense. But right after pods gets installed, there is Pods.xcodeproj in Pods/_Prebuild. Leaving that project opened bypasses this error.

hardik-plume commented 4 years ago

@zh-se https://github.com/leavez/cocoapods-binary/pull/73 still didn't work for us

andrewthecope commented 4 years ago

I was able to fix this issue by selecting the latest version of the Xcode command line tools. This is most easily done in Xcode > Preferences > Locations > Command Line Tools. On Catalina, you will need to enter your password to select a version.