question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow run-ios to accept an xcconfig to be used in xcodebuild

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ShaswatPrabhatcommented, Oct 21, 2022

PR for the issue

1reaction
ShaswatPrabhatcommented, Oct 21, 2022

Will share a PR for the same ASAP

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found