Skip to content
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

[Probably User/OpenSSL Error] Failed to verify provisioning profile #32

Closed
furby-tm opened this issue Aug 19, 2023 · 1 comment
Closed

Comments

@furby-tm
Copy link
Contributor

furby-tm commented Aug 19, 2023

This is more than likely just user error, or something strange in my openssl certificate chain, however when I run:

(if this is the correct usage)
swift bundler -v run -p visionOS --identity $env:DEV_IDENTITY --codesign --provisioning-profile /Path/To/xxx.provisionprofile

I receive the following error:

.../pk7_smime.c:340:Verify error:self signed certificate in certificate chain

Full error in context:

info: Starting debug build
debug: Running command: '/usr/bin/xcrun' with arguments: ["--sdk", "xros", "--show-sdk-path"]
debug: Running command: '/usr/bin/env' with arguments: ["swift", "build", "-c", "debug", "--product", "KrakenApp", "--arch", "arm64", "-Xswiftc", "-sdk", "-Xswiftc", "/Applications/Xcode-beta.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS1.0.sdk", "-Xswiftc", "-target", "-Xswiftc", "arm64-apple-xros1.0", "-Xcc", "--target=arm64-apple-xros1.0", "-Xcc", "-isysroot", "-Xcc", "/Applications/Xcode-beta.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS1.0.sdk"]
Building for debugging...
Build complete! (0.55s)
info: Bundling 'KrakenApp.app'
info: Creating 'KrakenApp.app'
info: Copying executable
info: Creating 'PkgInfo'
info: Creating 'Info.plist'
info: Compiling and copying resource bundle 'KrakenKit_KrakenKit.bundle'
info: Copying dynamic libraries
info: Embedding provisioning profile
debug: Running command: '/usr/bin/openssl' with arguments: ["smime", "-verify", "-in", "/Users/furby/dev/Atmos/KrakenKit/.build/bundler/KrakenApp.app/embedded.mobileprovision", "-inform", "der"]
Verification failure
8127874048:error:21FFF075:PKCS7 routines:CRYPTO_internal:certificate verify error:/AppleInternal/Library/BuildRoots/8f53d7fd-3013-11ee-8ab0-7a03568b17ac/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/pkcs7/pk7_smime.c:340:Verify error:self signed certificate in certificate chain
error: Failed to verify provisioning profile
debug: Error details: failedToCodesign(swift_bundler.CodeSignerError.failedToVerifyProvisioningProfile(swift_bundler.ProcessError.nonZeroExitStatusWithOutput(0 bytes, 4)))
@furby-tm
Copy link
Contributor Author

Closed, if anyone comes here in the future the command you are looking for is:

bundler -v run -p visionOSSimulator

The simulator equivalent, if your intention is to run the debug simulator and not a device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant