'XCode fails to build WHEN device is not plugged in - ld: framework not found
New to the iOS development here. I'm currently having a hybrid application that builds and works via xcode when uploading it on a device. However, when I try to build it via command line (without any physical device as a target) like this:
xcodebuild -workspace ${ROOTFOLDER}/App/App.xcworkspace -scheme "${SCHEME}" clean archive -configuration ${CONFIGURATION} -sdk iphoneos -archivePath ${ROOTFOLDER}/build/App.xcarchive ENABLE_BITCODE=NO
It fails with the following error:
ld: framework not found AppsFlyerLib
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Again, this only happens when doing it via command line without any physical device selected which makes me think that it might be some configurations issues.
Any help/tips is much appreciated, thanks!
Solution 1:[1]
Finally fixed it! The actual issue was that armv7 architecture was included as target as well. Switched to arm64 only and got solved.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | alex1997 |
