Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prebuild failed for mac and xcode beta #94

Open
cstlex opened this issue Sep 6, 2019 · 10 comments
Open

Prebuild failed for mac and xcode beta #94

cstlex opened this issue Sep 6, 2019 · 10 comments

Comments

@cstlex
Copy link

cstlex commented Sep 6, 2019

   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
Copy link

hardik-plume commented Sep 26, 2019

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
Copy link

@leavez any idea?

@cstlex
Copy link
Author

cstlex commented Sep 28, 2019

Now XCode is not beta but catalina is.

I would like to fix it myself but still struggling.

@DamienLevel
Copy link

Same problem for me 😢

@zh-se
Copy link

zh-se commented Oct 1, 2019

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
Copy link

hardik-plume commented Oct 1, 2019

Why is this pr not merged then?

@cstlex
Copy link
Author

cstlex commented Oct 2, 2019

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
Copy link
Author

cstlex commented Oct 7, 2019

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
Copy link

@zh-se #73 still didn't work for us

@andrewthecope
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants