Skip to content

Commit

Permalink
[Mobile] Fix iOS release build
Browse files Browse the repository at this point in the history
Invalid platform "ios" selected. and main.jsbundle does not exist

https://github.com/react-native-community/cli/issues/656\#issuecomment-532235648
  • Loading branch information
brunolemos committed Dec 8, 2020
1 parent 8d3623b commit 9f4a5d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
"studio": "yarn workspace @devhub/mobile studio",
"xcode": "yarn workspace @devhub/mobile xcode"
},
"dependencies": {
"react-native": "*"
},
"devDependencies": {
"@primer/octicons-v2": "canary",
"@typescript-eslint/eslint-plugin": "4.9.0",
Expand Down
7 changes: 4 additions & 3 deletions packages/mobile/ios/devhub.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
};
};
};
buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "DevHub" */;
buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "devhub" */;
compatibilityVersion = "Xcode 12.0";
developmentRegion = en;
hasScannedForEncodings = 0;
Expand Down Expand Up @@ -196,7 +196,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "set -e\n\nexport NODE_BINARY=node\n../../../node_modules/react-native/scripts/react-native-xcode.sh\n";
shellScript = "set -e\n\nexport NODE_BINARY=node\nexport ENTRY_FILE=packages/mobile/index.js\n../../../node_modules/react-native/scripts/react-native-xcode.sh\n";
};
30B724DD75C10DC4C299DD76 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
Expand Down Expand Up @@ -328,6 +328,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down Expand Up @@ -477,7 +478,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "DevHub" */ = {
83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "devhub" */ = {
isa = XCConfigurationList;
buildConfigurations = (
83CBBA201A601CBA00E9B192 /* Debug */,
Expand Down

0 comments on commit 9f4a5d9

Please sign in to comment.