I've just set up our project to build automatically using the above guide. It all seems to work great, apart from when it gets to the Embed Pods Frameworks build phase, when I get this error:
2018-11-02T20:01:06.7753710Z PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/vsts/Library/Developer/Xcode/DerivedData/{redacted}-hichxtjgqjkbxhafvxfmslxruuyb/Build/Intermediates.noindex/{redacted}.build/HockeyApp-iphoneos/{redacted}.build/Script-35D9633CF97A7264E5394BD6.sh
2018-11-02T20:01:06.7753900Z (1 failure)
2018-11-02T20:01:06.8202240Z ##[error]Error: /usr/bin/xcodebuild failed with return code: 65
2018-11-02T20:01:06.8778340Z ##[section]Finishing: Xcode
I've tried a few changes to the yaml file to get past this without success. Any suggestions?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Hi! I have the same issue.
2018-11-09T13:39:41.2848040Z â–¸ Running script '[CP] Embed Pods Frameworks'
2018-11-09T13:39:41.4428110Z ** BUILD FAILED **
2018-11-09T13:39:41.4428220Z
2018-11-09T13:39:41.4429710Z
2018-11-09T13:39:41.4429960Z The following build commands failed:
2018-11-09T13:39:41.4431400Z PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/vsts/Library/Developer/Xcode/DerivedData/{redacted}-eokffaykmqvhjigsivefvrwuvcwu/Build/Intermediates.noindex/{redacted}/Debug-iphoneos/{redacted} Dev.build/Script-ADB8B0314567558CC66CD50E.sh
2018-11-09T13:39:41.4431800Z (1 failure)
2018-11-09T13:39:41.4905970Z ##[error]Error: /usr/bin/xcodebuild failed with return code: 65
2018-11-09T13:39:41.5462120Z ##[section]Finishing: Xcode
I actually resolved this by adding the signing and provisioning certs to the build - all works fine now.
Thanks! After some tinkering I managed to solve it too by signing.
That said, this is probably still a bug since you sometimes what to do unsigned builds.
To skip signing, you can pass in signingOption: nosign to the Xcode task. Hope that helps.
Thanks,
Madhuri
Closing this issue... Feel free to reopen it if there's something that the above-mentioned signingOption doesn't solve for you. Thanks for reporting this.
This still does not fix the issue
@pateljay43 - did you try signing or skip signing with the Xcode task? Please provide more detail on which one did not fix your issue.
Thanks,
Madhuri
I have tried both ways - with and without signing.
Both of them leads to same above mentioned error: PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks ...
Thanks for getting back,
Jay
Please share full debug logs for investigation. If you don't want to attach them here, you can email - madhurig at microsoft dot com.
Thanks,
Madhuri
I saw the logs and figured out it was not signing the build on xcbuild command. I fixed the signing and then it went through. Thanks for your help.
-Jay
Most helpful comment
I saw the logs and figured out it was not signing the build on xcbuild command. I fixed the signing and then it went through. Thanks for your help.
-Jay