I am trying to distribute an app for Enterprise, and keep getting this error (after selecting the Provisioning Profile):
Digging into the logs reveal this:
2018-09-21 04:14:07 +0000 /var/folders/xj/stm8l48s1nq9320sfh3ytw140000gn/T/XcodeDistPipeline.IsE/Root/Payload/Fleet UAT.app/Frameworks/AppAuth.framework: replacing existing signature
2018-09-21 04:14:07 +0000 /var/folders/xj/stm8l48s1nq9320sfh3ytw140000gn/T/XcodeDistPipeline.IsE/Root/Payload/Fleet UAT.app/Frameworks/AppAuth.framework: code object is not signed at all
2018-09-21 04:14:07 +0000 /usr/bin/codesign exited with 1
Similar issue happens to all frameworks used by the project. These frameworks were added using Carthage.
This started happening after I upgraded to Xcode 10 & Carthage 0.30.1 (I was using 0.16.x previously).
When you are adding frameworks using Carthage you need to follow some steps in order to make it work properly. Here is a tutorial: https://www.raywenderlich.com/416-carthage-tutorial-getting-started
In your case make sure, that:
You added your frameworks as Linked
(not Embedded
)
You have Run script
phase in your Build phases:
You added paths (Input Files) for all your Carthage frameworks
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