My app builds and runs successfully, but archives fails, therefore I can't make an ipa file. Error log is following:
ld: library not found for -lAAMFeedback
clang: error: linker command failed with exit code 1 (use -v to see invocation)
the library is this: pod 'AAMFeedback', :git => 'https://github.com/PlusR/AAMFeedback.git'
Anyone encountered the same situation before? Please share the experience to help me. Thanks,
version info:
Xcode version: 7.3.1
target ios version: 8.0
Archive menu option grayed out If you can't create an archive in Xcode, usually it's because you have the destination set to the simulator. Switch to an iOS device (it should work even if you don't have one connected). Another cause for the grayed-out archive option is that it's disabled for your scheme.
Yes you are right, you dont required 'Build' before archiving. So, you can directly archive it(it automatically going to build it). This error comes when compiler unable to find required library. So, check your Runpath search paths ( Library search paths in xcode version older than iOS 12) in build settings.
It archives your Xcode project by running the xcodebuild archive command and exports the archive into an . ipa file with the xcodebuild -exportArchive command. This . ipa file can be shared and installed on test devices, or uploaded to App Store Connect.
Xcode 9.0
For me what works was to go Product > Scheme > Manage Scheme and tick all the checkboxes, then Build again and then Archive.
Hopefully, this can help someone else.
I finally managed to Archive. It was the reason why archive didn't succeed to set Product > Edit Scheme > Build setting. I unchecked 'Find implicit Dependencies' during development, which fasten the building process. However it is needed to check that setting when archiving.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With