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

Prebuild failed for mac and xcode beta

Open cstlex opened this issue 5 years ago • 10 comments

   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

cstlex avatar Sep 06 '19 08:09 cstlex

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 avatar Sep 26 '19 18:09 hardik-plume

@leavez any idea?

hardik-plume avatar Sep 26 '19 19:09 hardik-plume

Now XCode is not beta but catalina is.

I would like to fix it myself but still struggling.

cstlex avatar Sep 28 '19 09:09 cstlex

Same problem for me 😢

DamienLevel avatar Sep 30 '19 16:09 DamienLevel

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

zh-se avatar Oct 01 '19 14:10 zh-se

Why is this pr not merged then?

hardik-plume avatar Oct 01 '19 17:10 hardik-plume

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 avatar Oct 02 '19 05:10 cstlex

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.

cstlex avatar Oct 07 '19 06:10 cstlex

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

hardik-plume avatar Oct 24 '19 02:10 hardik-plume

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.

andrewthecope avatar Jan 22 '20 18:01 andrewthecope