-
-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
15.0.0-cli on Xcode 14 : PhaseScriptExecution failed #780
Comments
Is "Volt.Built" a cloud-based build service? |
Note added to the docs clarifying that remote cloud build environments are not supported and why: |
@dpa99c - thanks for the help. We have a number of users with this issue. I'm one of the devs for VoltBuilder. I turned off all restrictions on hooks and tried the job again:
Any ideas? The plugin worked great until Xcode 14. |
@gwhenne it looks like the |
@dpa99c - you're correct. The pods were out of date. However, it's still the same error message. VoltBuilder does support Cordova hook scripts. Is there any way to tell if the hook scripts are succeeding? |
@gwhenne Try running |
Thanks, @dpa99c - very helpful post! I looked at my log to see if the message is there. It is:
So the problem does not appear to be the hooks. I'll see if I can get the |
Here's the output from |
The pod installation was successful so it must be the build step failing. Try |
|
Building for Simulator does not require code signing however building for device does so this could be the issue. In
The file Do you have a {
"ios": {
"debug": {
"automaticProvisioning": true,
"developmentTeam": "<Your Apple Team ID>",
"packageType": "development"
},
"release": {
"automaticProvisioning": true,
"developmentTeam": "<Your Apple Team ID>",
"packageType": "app-store"
}
}
}
|
Here it is:
|
Those build flags may be the problem, particularly If I run |
I tried building it without the What does your build.json file look like? I'm not sure what this sentence is referring to.
|
My {
"ios": {
"debug": {
"automaticProvisioning": true,
"developmentTeam": "<Your Apple Team ID>",
"packageType": "development"
},
"release": {
"automaticProvisioning": true,
"developmentTeam": "<Your Apple Team ID>",
"packageType": "app-store"
}
}
} |
Hmmm... how does it even work if you don't specify If I include those, I get the usual error. The certs seem to be correct - the same project builds fine with Xcode 13. |
AFAIK So I guess |
I think you're right: I wonder if there is some other factor at play here. I'll run some tests here - let me know if you think of anything. |
Just tried building that same app, but without It looks like something in the processing of the plugin breaks signing. |
This plugin is quite a thin wrapper around the native Firebase iOS SDK which pulls in lots of 3rd party dependencies. Google of course does not support this usage within Cordova or CLI builds so there is no official support from them. I would suggest building the example project with appropriate reconfiguration as it's a known codebase in order to validate the build environment and rule out possible causes in the project you are building such as conflicts with other plugins. |
Just finished a team meeting on this. We'll try the following:
We also thought it would be a useful data point to see if you can build without automatic provisioning. Could you give that a try? |
Here's the build log from a successful build of the example project with manual provisioning using following {
"ios": {
"debug": {
"automaticProvisioning": false,
"buildFlag": [
"EMBEDDED_CONTENT_CONTAINS_SWIFT = YES",
"CODE_SIGNING_ALLOWED = YES",
"ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO",
"LD_RUNPATH_SEARCH_PATHS = \"@executable_path/Frameworks\""
],
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "556F3DRHUD",
"packageType": "development",
"provisioningProfile": "cb6f4c00-32d9-4b85-a727-4f34c798b431"
}
}
} |
Just built your example project, using our certs. No automatic provisioning. It looks like it fails the same way.
|
Googling |
A problem with the certs is always a possibility, if Xcode 14 changed the handling. I'm now even more curious what happens when you try your sample project with your certs, but with manual provisioning. |
As above, my CLI build of the example project with manual provisioning (based on your |
Sorry - missed that. Our replies overlapped. |
Next thing to try might be to submit your job with your certs to the Voltbuilder server. That would determine whether the certs are the issue. To do that, you'd need to share your certs with me, or add a couple of files to your project and submit it yourself. Are you game for one of these options? |
Sure but it will have to be tomorrow as my wife has got jobs for me now - I'll share the creds direct via email as I don't want to commit them to a public repo |
Sounds good - thanks! |
Bug report
CHECKLIST
[ x] I have read the issue reporting guidelines
[ x] I confirm this is a suspected bug or issue that will affect other users
Hi,
I am trying to use a new version of plugin 15.0.0-cli on Volt.Built with Xcode 14 but i am getting error:
`Code Signing /Users/vagrant/Library/Developer/Xcode/DerivedData/ZiE_TEST_APP-cwvqkqvtqskzrhehtjhaesuaccsh/Build/Intermediates.noindex/ArchiveIntermediates/ZiE TEST APP/InstallationBuildProductsLocation/Applications/ZiE TEST APP.app/Frameworks/AppAuth.framework with Identity iPhone Developer: Pedja Vujic (73S873NL2Y)
/usr/bin/codesign --force --sign F927C56AE9B2A694BEB53E5F521C3A40AC38EDA9 --preserve-metadata=identifier,entitlements '/Users/vagrant/Library/Developer/Xcode/DerivedData/ZiE_TEST_APP-cwvqkqvtqskzrhehtjhaesuaccsh/Build/Intermediates.noindex/ArchiveIntermediates/ZiE TEST APP/InstallationBuildProductsLocation/Applications/ZiE TEST APP.app/Frameworks/AppAuth.framework'
/Users/vagrant/Library/Developer/Xcode/DerivedData/ZiE_TEST_APP-cwvqkqvtqskzrhehtjhaesuaccsh/Build/Intermediates.noindex/ArchiveIntermediates/ZiE TEST APP/InstallationBuildProductsLocation/Applications/ZiE TEST APP.app/Frameworks/AppAuth.framework: errSecInternalComponent
Command PhaseScriptExecution failed with a nonzero exit code
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'abseil' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'gRPC-Core' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'gRPC-C++' from project 'Pods')
** ARCHIVE FAILED **
The following build commands failed:
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/vagrant/Library/Developer/Xcode/DerivedData/ZiE_TEST_APP-cwvqkqvtqskzrhehtjhaesuaccsh/Build/Intermediates.noindex/ArchiveIntermediates/ZiE\ TEST\ APP/IntermediateBuildFilesPath/ZiE\ TEST\ APP.build/Debug-iphoneos/ZiE\ TEST\ APP.build/Script-F8F0351AC0D69FFA3D0CB7CE.sh (in target 'ZiE TEST APP' from project 'ZiE TEST APP')
(1 failure)
xcodebuild: Command failed with exit code 65`
Any idee how to solve this?
Thanks
The text was updated successfully, but these errors were encountered: