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

Pod with XCFrameworks embedded libraries not compiling on simulator #9785

Closed
remizorrr opened this issue May 12, 2020 · 8 comments
Closed

Pod with XCFrameworks embedded libraries not compiling on simulator #9785

remizorrr opened this issue May 12, 2020 · 8 comments

Comments

@remizorrr
Copy link

Setup is:
Xcode 11.4.1,
Cocapods latest beta.

Local pod, with embedded (vendored_frameworks) xcframeworks.
project, referencing local pod.

compiling and running on the iPhone - everything works.
Compiling for simulator - getting following error.

ld: warning: ignoring file /Users/antonremizov/Documents/Work-Projects/CocoapodsExample/Library/Frameworks/CTFoundation.xcframework/ios-arm64/CTFoundation.framework/CTFoundation, building for iOS Simulator-x86_64 but attempting to link with file built for iOS-arm64
Undefined symbols for architecture x86_64:
  "(extension in CTFoundation):Swift.Array<A where A == Swift.UInt8>.hexString.getter : Swift.String", referenced from:
      Library.testPrint() -> () in Main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

attaching a sample project.

CocoapodsExample.zip

@dnkoutso
Copy link
Contributor

Can you please try cocoapods latest master?

@dnkoutso dnkoutso added the s1:awaiting input Waiting for input from the original author label May 12, 2020
@remizorrr
Copy link
Author

@dnkoutso Thank you. Top of tree master worked.

@stale stale bot removed the s1:awaiting input Waiting for input from the original author label May 12, 2020
@dnkoutso
Copy link
Contributor

Alright it will ship with 1.10 hopefully soon! Closing this for now and others can still find this issue.

@jaroslavas
Copy link

Any plans on when that soon may be expected?
And is there a document explaining how to install cocoapods from master?

@dnkoutso
Copy link
Contributor

Use bundler https://bundler.io/v1.5/git.html

@dnkoutso
Copy link
Contributor

As for the release there is no ETA on releases. Most of the work is done ad-hoc in the free time of folks.

@jaroslavas
Copy link

I've installed cocoapods from master branch (0a46d4948ae6a3fd9fee8c022741e2c36baca86d), pod install runs fine, but then while building the app I get code object is not signed at all error in PhaseScriptExecution [CP] Embed Pods Frameworks step:

Code Signing /Users/user/Library/Developer/Xcode/DerivedData/ProtonVPN-gbslyxolvvcktdcdnryucgxjnmgo/Build/Products/Debug-iphonesimulator/ProtonVPN.app/Frameworks/MyFramework.framework with Identity -
/usr/bin/codesign --force --sign -  --preserve-metadata=identifier,entitlements '/Users/user/Library/Developer/Xcode/DerivedData/ProtonVPN-gbslyxolvvcktdcdnryucgxjnmgo/Build/Products/Debug-iphonesimulator/ProtonVPN.app/Frameworks/MyFramework.framework'
/Users/user/Library/Developer/Xcode/DerivedData/ProtonVPN-gbslyxolvvcktdcdnryucgxjnmgo/Build/Products/Debug-iphonesimulator/ProtonVPN.app/Frameworks/MyFramework.framework: code object is not signed at all

Any suggestions?

@amorde
Copy link
Member

amorde commented May 16, 2020

@jaroslavas could you open a separate issue with a sample project that reproduces the bug? that sounds different than what this issue was describing.

Looking at the error I don't have any suggestions ATM, haven't seen that particular error. Does look like you have a code signing identity set to - (maybe for Catalyst support?)

This issue was closed.
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

4 participants