-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use legacy build system to build framework #940
Conversation
I just ran into this too. I'll use your fork and report back if it works. Thanks for identifying the issue and submitting a quick fix for it. |
@Monte9 thats great! You can use this to test it super quick if you want: |
@karanjthakkar thank you! I was struggling to install your fork. I used that link in my Although seeing a lot of errors on Xcode related to React Native due to the new build system in Xcode 10. Found this to be helpful but I am still in debugging mode. Will keep you posted. |
Great, I am accepting on faith that you have tested. This is the way to go for now, until we upgrade everything for the new build system. |
Can confirm that there are other projects who have made similar fixes to support Xcode 10 for the time being. |
I tried to build all detox projects in the monorepo, and It appeared that pull request missed adding the flag to these places. The build was failing locally. Today I am checking things step-by-step manually on a couple of virtual machines and fixing stuff as I find. If it goes well, I'll publish a new version as soon as it is possible. diff --git a/detox/test/package.json b/detox/test/package.json
index dfe4e4af..bea15388 100644
--- a/detox/test/package.json
+++ b/detox/test/package.json
@@ -35,13 +35,13 @@
"configurations": {
"ios.sim.debug": {
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/example.app",
- "build": "set -o pipefail && xcodebuild -project ios/example.xcodeproj -scheme example_ci -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build | xcpretty",
+ "build": "set -o pipefail && xcodebuild -project ios/example.xcodeproj -UseNewBuildSystem=NO -scheme example_ci -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build | xcpretty",
"type": "ios.simulator",
"name": "iPhone X"
},
"ios.sim.release": {
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/example.app",
- "build": "set -o pipefail && export CODE_SIGNING_REQUIRED=NO && export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project ios/example.xcodeproj -scheme example_ci -configuration Release -sdk iphonesimulator -derivedDataPath ios/build | xcpretty",
+ "build": "set -o pipefail && export CODE_SIGNING_REQUIRED=NO && export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project ios/example.xcodeproj -UseNewBuildSystem=NO -scheme example_ci -configuration Release -sdk iphonesimulator -derivedDataPath ios/build | xcpretty",
"type": "ios.simulator",
"name": "iPhone X"
},
diff --git a/examples/demo-native-ios/package.json b/examples/demo-native-ios/package.json
index faf9d5a3..2c16bf49 100644
--- a/examples/demo-native-ios/package.json
+++ b/examples/demo-native-ios/package.json
@@ -11,13 +11,13 @@
"configurations": {
"ios.sim.release": {
"binaryPath": "build/Build/Products/Release-iphonesimulator/NativeExample.app",
- "build": "xcodebuild -project NativeExample.xcodeproj -scheme NativeExample -configuration Release -sdk iphonesimulator -derivedDataPath build",
+ "build": "xcodebuild -project NativeExample.xcodeproj -UseNewBuildSystem=NO -scheme NativeExample -configuration Release -sdk iphonesimulator -derivedDataPath build",
"type": "ios.simulator",
"name": "iPhone 7 Plus"
},
"ios.sim.debug": {
"binaryPath": "build/Build/Products/Debug-iphonesimulator/NativeExample.app",
- "build": "xcodebuild -project NativeExample.xcodeproj -scheme NativeExample -configuration Debug -sdk iphonesimulator -derivedDataPath build",
+ "build": "xcodebuild -project NativeExample.xcodeproj -UseNewBuildSystem=NO -scheme NativeExample -configuration Debug -sdk iphonesimulator -derivedDataPath build",
"type": "ios.simulator",
"name": "iPhone 7 Plus"
}
diff --git a/examples/demo-react-native-jest/package.json b/examples/demo-react-native-jest/package.json
index 9fff0ed9..30cb029a 100644
--- a/examples/demo-react-native-jest/package.json
+++ b/examples/demo-react-native-jest/package.json
@@ -24,13 +24,13 @@
"configurations": {
"ios.sim.release": {
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/DemoReactNativeJest.app",
- "build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project ios/DemoReactNativeJest.xcodeproj -scheme DemoReactNativeJest -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -quiet",
+ "build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project ios/DemoReactNativeJest.xcodeproj -UseNewBuildSystem=NO -scheme DemoReactNativeJest -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -quiet",
"type": "ios.simulator",
"name": "iPhone 7 Plus"
},
"ios.sim.debug": {
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/DemoReactNativeJest.app",
- "build": "xcodebuild -project ios/DemoReactNativeJest.xcodeproj -scheme DemoReactNativeJest -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
+ "build": "xcodebuild -project ios/DemoReactNativeJest.xcodeproj -UseNewBuildSystem=NO -scheme DemoReactNativeJest -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
"type": "ios.simulator",
"name": "iPhone 7 Plus"
},
diff --git a/examples/demo-react-native/package.json b/examples/demo-react-native/package.json
index 6b696677..4cdac6e0 100644
--- a/examples/demo-react-native/package.json
+++ b/examples/demo-react-native/package.json
@@ -20,13 +20,13 @@
"configurations": {
"ios.sim.release": {
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/example.app",
- "build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project ios/example.xcodeproj -scheme example -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -quiet",
+ "build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project ios/example.xcodeproj -UseNewBuildSystem=NO -scheme example -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -quiet",
"type": "ios.simulator",
"name": "iPhone 7 Plus"
},
"ios.sim.debug": {
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/example.app",
- "build": "xcodebuild -project ios/example.xcodeproj -scheme example -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
+ "build": "xcodebuild -project ios/example.xcodeproj -UseNewBuildSystem=NO -scheme example -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
"type": "ios.simulator",
"name": "iPhone 7 Plus"
}, |
In Xcode 10, the build system defaults to the
New Build System
launched in Xcode 9. Because of this, thepostinstall
script fails with the following error (only important parts added. see here for complete log):Here's another report in the wild for a similar case: lionheart/openradar-mirror#19856
Fixes #913
PS: While this is something that fixes the issue in the short term, someone who's more proficient with the iOS ecosystem should look into how to fix this properly for the future. 🙂 This is as far as I could go with my very minimal knowledge.