Justin Sato
Justin Sato

Reputation: 574

Xcode Build and Run Succeeds, but Archive Fails

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

Upvotes: 18

Views: 16813

Answers (3)

Edouard Barbier
Edouard Barbier

Reputation: 1845

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.

Upvotes: 4

Justin Sato
Justin Sato

Reputation: 574

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.

enter image description here

Upvotes: 6

Rakshith Nandish
Rakshith Nandish

Reputation: 639

Try adding the AAMFeedback in your Link Binary with Libraries under the Build Phases, try adding your Library's framework there

Upvotes: 0

Related Questions