From 2f2400cc06805bbb46855815a0203e0d1ca0b857 Mon Sep 17 00:00:00 2001 From: Jonah Hulselmans Date: Thu, 19 Sep 2024 16:41:33 +0200 Subject: [PATCH 1/2] When user defaults returns an empty string and not nil make sure string is nil --- .../InternalUserConsentDataManager.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PrebidMobile/ConfigurationAndTargeting/InternalUserConsentDataManager.m b/PrebidMobile/ConfigurationAndTargeting/InternalUserConsentDataManager.m index 0e6f9a042..64a219abe 100644 --- a/PrebidMobile/ConfigurationAndTargeting/InternalUserConsentDataManager.m +++ b/PrebidMobile/ConfigurationAndTargeting/InternalUserConsentDataManager.m @@ -40,7 +40,11 @@ + (NSString *)gppHDRString { + (NSMutableArray *)gppSID { NSString * gppSID = [NSUserDefaults.standardUserDefaults stringForKey:InternalUserConsentDataManager.IABGPP_GppSID]; - + + if ([gppSID length] == 0) { + gppSID = nil; + } + NSMutableArray *gppSIDStringArray = [[gppSID componentsSeparatedByString:@"_"] mutableCopy]; NSMutableArray *gppSIDIntArray = [NSMutableArray new]; From 806b224198d491a8be0f81ba2ad46a473203f2e1 Mon Sep 17 00:00:00 2001 From: Jonah Hulselmans Date: Mon, 28 Oct 2024 15:07:45 +0100 Subject: [PATCH 2/2] fix: build correct xcframework https://forums.developer.apple.com/forums/thread/666335?answerId=707645022#707645022 --- scripts/buildPrebidMobile.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/buildPrebidMobile.sh b/scripts/buildPrebidMobile.sh index 4c6f73df6..bcd7f8e2e 100755 --- a/scripts/buildPrebidMobile.sh +++ b/scripts/buildPrebidMobile.sh @@ -60,6 +60,7 @@ do only_active_arch=NO \ defines_module=YES \ SKIP_INSTALL=NO \ + BUILD_LIBRARY_FOR_DISTRIBUTION=YES \ -workspace PrebidMobile.xcworkspace \ -scheme "${schemes[$n]}" \ -configuration Release \ @@ -75,10 +76,10 @@ do only_active_arch=NO \ defines_module=YES \ SKIP_INSTALL=NO \ + BUILD_LIBRARY_FOR_DISTRIBUTION=YES \ -workspace PrebidMobile.xcworkspace \ -scheme "${schemes[$n]}" \ -configuration Release \ - -arch x86_64 \ -sdk "iphonesimulator" \ -derivedDataPath $XCODE_BUILD_DIR \ -archivePath "$XCODE_ARCHIVE_DIR/${schemes[$n]}$POSTFIX_SIMULATOR.xcarchive" \