Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Propagate ARM64-only Apple build settings

laurenspriemcfadb33e04d6
diff --git a/mobile/apps/photos/rust_builder/macos/ente_photos_rust.podspec b/mobile/apps/photos/rust_builder/macos/ente_photos_rust.podspec
index c4b336156d..abb8334cdd 100644
--- a/mobile/apps/photos/rust_builder/macos/ente_photos_rust.podspec
+++ b/mobile/apps/photos/rust_builder/macos/ente_photos_rust.podspec
@@ -22,6 +22,9 @@ A new Flutter FFI plugin project.
s.dependency 'FlutterMacOS'
s.platform = :osx, '10.11'
+ # ONNX Runtime 1.27 does not publish Apple x86_64 binaries, so consumers
+ # must also avoid trying to link an x86_64 application slice.
+ s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=macosx*]' => 'x86_64' }
s.swift_version = '5.0'
s.script_phase = {
diff --git a/mobile/native/apple/apps/ensu/Ensu.xcodeproj/project.pbxproj b/mobile/native/apple/apps/ensu/Ensu.xcodeproj/project.pbxproj
index 93496de48d..2ad1254bbd 100644
--- a/mobile/native/apple/apps/ensu/Ensu.xcodeproj/project.pbxproj
+++ b/mobile/native/apple/apps/ensu/Ensu.xcodeproj/project.pbxproj
@@ -447,6 +447,7 @@
DEVELOPMENT_TEAM = 6Z68YJY9Q2;
ENABLE_PREVIEWS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = x86_64;
GENERATE_INFOPLIST_FILE = NO;
HEADER_SEARCH_PATHS = (
"$(inherited)",
@@ -500,6 +501,7 @@
DEVELOPMENT_TEAM = 6Z68YJY9Q2;
ENABLE_PREVIEWS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = x86_64;
GENERATE_INFOPLIST_FILE = NO;
HEADER_SEARCH_PATHS = (
"$(inherited)",