Signing for a beta build is not working on mac-mobile-2.
Note that there are 2 certificates for NUXEO CORP on the Apple developer portal, there should be only one .
=> cleanup
Using different lanes on the Fastfile, find a way to:
- correctly sign the app for a beta build with the AppStore provisioning profile
- correctly sign the app for a hockeyapp build with the AdHoc provisioning profile
It seems that the profile used is the one set in XCode, so we can't deploy on hockeyapp if we set the AppStore one by default, or we can't deploy to Testflight if we set the other one. We end up changing the provisioning profile through XCode when we want to do a beta build.
=> that's not a good solution, it should be automatic.
Signing is currently working for beta build on mac-mobile-1 but not working for hockeyapp build. mac-mobile-2 is currently offline while we do the release.
fastlane ios beta command is working through ssh but not through jenkins:
22:31:29 [00:31:26]: ▸ === BUILD TARGET ShareExtension OF PROJECT NuxeoMobile WITH CONFIGURATION Release === 22:31:29 [00:31:26]: ▸ Check dependencies 22:31:29 [00:31:26]: ▸ Code Signing Error: No certificate for team 'WCLR6985BX' matching 'iPhone Distribution: NUXEO CORP (WCLR6985BX)' found: Select a different signing certificate for CODE_SIGN_IDENTITY, a team that matches your selected certificate, or switch to automatic provisioning. 22:31:29 [00:31:26]: ▸ Code Signing Error: Code signing is required for product type 'App Extension' in SDK 'iOS 11.2'
Todo:
- check slave configuration
- issue as jenkins is a non-interactive user?
- fix Fastfile?
- try https://github.com/faithfracture/update_provisioning_profile_specifier?
Relying only on fastlane and using the same slaves we should be able to:
- deploy a beta build
- deploy a hockeyapp build