-
-
Notifications
You must be signed in to change notification settings - Fork 197
Not able to change IPHONEOS_DEPLOYMENT_TARGET due to CLI overwriting ARCHS and VALID_ARCHS #4197
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
Comments
@DickSmith ☝️ |
@DickSmith @etabakov as a possible temporary solution, we could change the
Inside the Modify the for device builds remove const defaultArchitectures = [
'ARCHS=arm64', , // remove arm7 here
'VALID_ARCHS=arm64' , // remove arm7 here
]; For simulator builds remove return __awaiter(this, void 0, void 0, function* () {
args = args
.concat([
"build",
"-configuration", buildConfig.release ? "Release" : "Debug",
"-sdk", "iphonesimulator",
"ARCHS=x86_64", // remove i386 here
"VALID_ARCHS=x86_64", , // remove i386 here
"ONLY_ACTIVE_ARCH=NO",
"CONFIGURATION_BUILD_DIR=" + path.join(projectRoot, "build", "emulator"),
"CODE_SIGN_IDENTITY=",
]) Then make a clean build for the project with |
The `armv7 arm64` setting is invalid when building for simulator. The reason for not detecting it until now is that it has been overridden with a command line argument passed to `xcodebuild` by {N} CLI. Doing so however prevents users from specifying their own value for ARCHS and VALID_ARCHS settings. See NativeScript/nativescript-cli#4197
When trying to change the iOS deployment target version to 11.0 the build is failing due to the CLI overwriting the VALID_ARCHS and ARCHS here (simulator logic) and here (device logic)
Steps to reproduce the issue:
tns create testApp --ng
cd testApp
Place the following
App_Resources/iOS/build.xcconfig
As a result, the build will fail with
The text was updated successfully, but these errors were encountered: