Skip to content

Commit

Permalink
Get simulator building on M1 MacOS Ventura 13.2 without Rosetta.
Browse files Browse the repository at this point in the history
  • Loading branch information
joegesualdo committed Mar 5, 2023
1 parent 0f419e0 commit 0487c0f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Zeus is proud to be integrated on the following platforms:
[react-native's Getting Started page](https://reactnative.dev/docs/environment-setup)
2. install node dependencies with `yarn`
3. `cd ios && pod install`
4. open `ios/zeus.xcworkspace` in Xcode and hit Run. NOTE: if you're using an M1 mac, you may need to right click Xcode > get info > check `Open using Rosetta` before opening `zeus.xcworkspace`.
4. open `ios/zeus.xcworkspace` in Xcode and hit Run.

## Reproducible builds

Expand Down
7 changes: 7 additions & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,12 @@ target 'zeus' do
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)

installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# Disable arm64 builds for the simulator
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
end
end
end
end
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,6 @@ SPEC CHECKSUMS:
TcpSockets: 6e65629a3742333f3a9165ebde4b2394407a543a
Yoga: 99caf8d5ab45e9d637ee6e0174ec16fbbb01bcfc

PODFILE CHECKSUM: 5644411d5f4fd931f08669526d5c8e8c87ab6ea0
PODFILE CHECKSUM: 8fd366bb49fae24964dcf0feb11a5cb0d9db2ef4

COCOAPODS: 1.11.3
4 changes: 4 additions & 0 deletions ios/zeus.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,7 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
DEVELOPMENT_TEAM = 7222UU8F2H;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
Expand Down Expand Up @@ -1540,6 +1541,7 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
COPY_PHASE_STRIP = NO;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../node_modules/react-native-permissions/ios/**",
Expand Down Expand Up @@ -1576,6 +1578,7 @@
CURRENT_PROJECT_VERSION = 7;
DEVELOPMENT_TEAM = 7222UU8F2H;
ENABLE_BITCODE = NO;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../node_modules/react-native-camera/ios/**",
Expand Down Expand Up @@ -1621,6 +1624,7 @@
CURRENT_PROJECT_VERSION = 7;
DEVELOPMENT_TEAM = 7222UU8F2H;
ENABLE_BITCODE = NO;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../node_modules/react-native-permissions/ios/**",
Expand Down

0 comments on commit 0487c0f

Please sign in to comment.