Allow run-ios to accept an xcconfig to be used in xcodebuild
See original GitHub issueDescribe the Feature
I would love to see the ability to pass in an xcconfig file to run-ios so that configs can be used to customize the build process with xcodebuild. This is a very important feature for whitelabeled applications that use xcconfig, scheme and configuration for different versions of an app. I was able to make a 2 line change to pass in the xcconfig locally and it worked without issue.
Possible Implementations
File https://github.com/react-native-community/cli/blob/master/packages/platform-ios/src/commands/runIOS/index.ts#L570 Change Add a new option Implementation
{
name: '--xcconfig [string]',
description: 'Explicitly set xcconfig to use',
}
File https://github.com/react-native-community/cli/blob/master/packages/platform-ios/src/commands/runIOS/index.ts#L414 Change Pass xcconfig to xcodebuildArgs Implementation
const xcodebuildArgs = [
xcodeProject.isWorkspace ? '-workspace' : '-project',
xcodeProject.name,
... args.xcconfig ? ['-xcconfig', args.xcconfig] : [],
'-configuration',
args.configuration,
'-scheme',
scheme,
'-destination',
`id=${udid}`,
];
Related Issues
N/A
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Xcode 13 (xcodebuild) regression, … | Apple Developer Forums
Hello everyone,. Feedback Reporter Bug ID #: FB9641953. We are using a single codebase with a hierarchical .xcconfig structure to use our CI...
Read more >Xcode, Pods ProjectName.debug.xcconfig unable to open file ...
I couldn't understand my problem for a long time, but today I take attention, what directory is wrong: full error: projectName/Pods/Pods...
Read more >Xcode Build Configuration Files - NSHipster
Xcode build configuration files, more commonly known by their xcconfig file extension, allow build settings for your app to be declared and ...
Read more >Xcodebuild failed with code 65 (WARNING: The server did not ...
I have the ProjectSettings.xcconfig file set just under the WebDriverAgent itself. ... account (Certificate and profile) which is used to build the app....
Read more >Working with the XCode configuration(.xcconfig) file - Medium
Let's take a look how to configure the .xcconfig file and how to use. Create a XCode projects. Single scheme with default configurations....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
PR for the issue
Will share a PR for the same ASAP