Skip to content

Commit

Permalink
fix(ios): remove VALID_ARCHS from cocoapods for xcode 12 (#5407)
Browse files Browse the repository at this point in the history
* fix(ios): remove VALID_ARCHS from cocoapods for xcode 12

* fix: tests
  • Loading branch information
NathanWalker authored Oct 3, 2020
1 parent 78d0e73 commit 03ecac9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/services/cocoapods-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ ${versionResolutionHint}`);
const exclusions = `
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete "VALID_ARCHS"
config.build_settings["EXCLUDED_ARCHS_x86_64"] = "arm64 arm64e"
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "i386 armv6 armv7 armv7s armv8 $(EXCLUDED_ARCHS_$(NATIVE_ARCH_64_BIT))"
config.build_settings["EXCLUDED_ARCHS[sdk=iphoneos*]"] = "i386 armv6 armv7 armv7s armv8 x86_64"
Expand Down
1 change: 1 addition & 0 deletions test/ios-project-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ describe("Cocoapods support", () => {
`# Begin Podfile - ${projectPath}/platforms/ios/Podfile-exclusions`,
`def post_installNativeScript_CLI_Architecture_Exclusions_0 (installer)`,
` installer.pods_project.build_configurations.each do |config|`,
` config.build_settings.delete "VALID_ARCHS"`,
` config.build_settings["EXCLUDED_ARCHS_x86_64"] = "arm64 arm64e"`,
` config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "i386 armv6 armv7 armv7s armv8 $(EXCLUDED_ARCHS_$(NATIVE_ARCH_64_BIT))"`,
` config.build_settings["EXCLUDED_ARCHS[sdk=iphoneos*]"] = "i386 armv6 armv7 armv7s armv8 x86_64"`,
Expand Down

0 comments on commit 03ecac9

Please sign in to comment.