You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting the code sign style to manual and providing provisioning profiles in Xcode it will always be reset to automatic signing when running expo.
I have reviewed the docs and even gone as far as building a config plugin to force the xcode project to be set to manual signing with certain provisioning profiles:
import{ConfigPlugin,IOSConfig,withXcodeProject}from'@expo/config-plugins'constwithManualSigning: ConfigPlugin=config=>{returnwithXcodeProject(config,asyncconfig=>{constproject=config.modResultsconsttargets=IOSConfig.Target.findSignableTargets(project)targets.forEach(([nativeTargetId,nativeTarget])=>{IOSConfig.XcodeUtils.getBuildConfigurationsForListId(project,nativeTarget.buildConfigurationList).forEach(config=>{const[,item]=configitem.buildSettings.CODE_SIGN_STYLE='Manual'item.buildSettings.DEVELOPMENT_TEAM='""'item.buildSettings.PROVISIONING_PROFILE_SPECIFIER='"match Development com.app.sample"'})Object.entries(IOSConfig.XcodeUtils.getProjectSection(project)).filter(IOSConfig.XcodeUtils.isNotComment).forEach(([,item])=>{if(!item.attributes.TargetAttributes[nativeTargetId]){item.attributes.TargetAttributes[nativeTargetId]={}}item.attributes.TargetAttributes[nativeTargetId].ProvisioningStyle='Manual'item.attributes.TargetAttributes[nativeTargetId].DevelopmentTeam='""'})})returnconfig})}exportdefaultwithManualSigning
Can this be overridden in anyway? we have recently started migrating to expo and this is a bit of a blocker for us to continue with our migration and I would love to know if there is something I am missing to avoid this.
I am happy to supply a minimal reproducible example if thats required but I think the problem is relatively evident in the code and the previous explanation.
The text was updated successfully, but these errors were encountered:
The Answer here was seemingly setting the team id, even though the CLI will report Auto signing app using team(s): XXXXX it will actually still be set to manual, it would be great if this could just be configured through the app config.
Summary
When setting the code sign style to manual and providing provisioning profiles in Xcode it will always be reset to automatic signing when running expo.
I have reviewed the docs and even gone as far as building a config plugin to force the xcode project to be set to manual signing with certain provisioning profiles:
However without fail whenever I run
expo run ios
it will always set the signing back to Automatic, which I believe is a symptom of the setAutoCodeSigningInfoForPbxproj method that appears to be called whenever all the targets have a team.Can this be overridden in anyway? we have recently started migrating to expo and this is a bit of a blocker for us to continue with our migration and I would love to know if there is something I am missing to avoid this.
What platform(s) does this occur on?
iOS
SDK Version
50.0.17
Environment
expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.3
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.8.0 - ~/.cache/fnm_multishells/98231_1713774848055/bin/node
Yarn: 3.6.3 - ~/.cache/fnm_multishells/98231_1713774848055/bin/yarn
npm: 10.1.0 - ~/.cache/fnm_multishells/98231_1713774848055/bin/npm
Watchman: 2024.03.25.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /Users/dawid/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.4, iOS 17.4, macOS 14.4, tvOS 17.4, visionOS 1.1, watchOS 10.4
IDEs:
Android Studio: 2023.1 AI-231.9392.1.2311.11330709
Xcode: 15.3/15E204a - /usr/bin/xcodebuild
npmPackages:
expo: ~50.0.17 => 50.0.17
react: 18.2.0 => 18.2.0
react-native: 0.73.6 => 0.73.6
Expo Workflow: bare
Minimal reproducible example
I am happy to supply a minimal reproducible example if thats required but I think the problem is relatively evident in the code and the previous explanation.
The text was updated successfully, but these errors were encountered: