fastlane: code sign errors while building the app
Question Subject
Hi there, I’m taking over a project that uses fastlane to submit app for review. I’m new to fastlane. I ran the CI job and see below errors:
Check dependencies
Code Signing Error: The operation couldn’t be completed. Unable to log in with account 'xuanliu@gmail.com'. The login details for account 'xuanliu@gmail.com' were rejected.
Code Signing Error: Provisioning profile "iOS Team Provisioning Profile: com.xuanliu.app.APIV1" doesn't include signing certificate "iPhone Developer: Xuan Liu (M827MT3LNY)".
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.4'
I don’t know why it’s rejected. I tried to save the password via
fastlane fastlane-credentials add --username xuanliu@gmail.com
[✔] 🚀
Password: ************
security: SecKeychainAddInternetPassword <NULL>: User interaction is not allowed.
Credential xuanliu@gmail.com:************ added to keychain.
but it still fails. Please help how do I fix it?
UPDATE: I managed to find the raw xcodebuild cmd and run:
xcodebuild -workspace BrandedApp.xcworkspace -scheme BrandedApp -configuration Release -sdk ‘iphoneos’ -destination ‘generic/platform=iOS’ -archivePath build/archive/BrandedApp_9943\ 2018-11-29\ 16.46.49.xcarchive -derivedDataPath ‘build’ -allowProvisioningUpdates clean archive
it gives the same error. Looks like xcodebuild throw the error.
However, If I open Xcode and go to account tab, it seems fine. The cert is in key chain as well. How can I fix it? Thanks
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (2 by maintainers)
I’m stuck on the same issue with XCode 10 and Jenkins CI. I am able to archive directly using the command line on the build server, but fastlane fails with this error on Jenkins. What could be the issue?
This might help: https://forums.developer.apple.com/thread/112606
This is still a big problem. I think it started with Xcode 10, and it seems to be box specific. Other than that I am not sure of all the root causes.