Skip to content

Commit f358b69

Browse files
committed
iOS: Search for the library depending on the target
1 parent 1539a68 commit f358b69

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

glean-core/ios/Glean.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,9 @@
774774
"@executable_path/Frameworks",
775775
"@loader_path/Frameworks",
776776
);
777+
"LIBRARY_SEARCH_PATHS[sdk=iphoneos*][arch=arm64]" = "../../target/aarch64-apple-ios/debug";
778+
"LIBRARY_SEARCH_PATHS[sdk=iphonesimulator*][arch=arm64]" = "../../target/aarch64-apple-ios-sim/debug";
779+
"LIBRARY_SEARCH_PATHS[sdk=iphonesimulator*][arch=x86_64]" = "../../target/x86_64-apple-ios/debug";
777780
ONLY_ACTIVE_ARCH = YES;
778781
PRODUCT_BUNDLE_IDENTIFIER = org.mozilla.Glean;
779782
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
@@ -807,6 +810,9 @@
807810
"@executable_path/Frameworks",
808811
"@loader_path/Frameworks",
809812
);
813+
"LIBRARY_SEARCH_PATHS[sdk=iphoneos*][arch=arm64]" = "../../target/aarch64-apple-ios/release";
814+
"LIBRARY_SEARCH_PATHS[sdk=iphonesimulator*][arch=arm64]" = "../../target/aarch64-apple-ios-sim/release";
815+
"LIBRARY_SEARCH_PATHS[sdk=iphonesimulator*][arch=x86_64]" = "../../target/x86_64-apple-ios/release";
810816
ONLY_ACTIVE_ARCH = YES;
811817
PRODUCT_BUNDLE_IDENTIFIER = org.mozilla.Glean;
812818
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";

glean-core/ios/base.xcconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#include "../../xcconfig/common.xcconfig"
22

33
INFOPLIST_FILE = Glean/Info.plist
4-
LIBRARY_SEARCH_PATHS = "../../target/universal/$(buildvariant)"

0 commit comments

Comments
 (0)