diff --git a/Scripts/build-ios-universal.sh b/Scripts/build-ios-universal.sh index 03bbff1..aef7004 100755 --- a/Scripts/build-ios-universal.sh +++ b/Scripts/build-ios-universal.sh @@ -44,3 +44,6 @@ lipo \ "${SIMULATOR_DIR}/${FRAMEWORK_BINARY}" \ -create -output "${BUILT_PRODUCTS_DIR}/${FRAMEWORK_BINARY}" echo "Final framework architectures: $(lipo -archs "${BUILT_PRODUCTS_DIR}/${FRAMEWORK_BINARY}")" + +echo "Appending simulator to Info.plist" +plutil -insert CFBundleSupportedPlatforms.1 -string "iPhoneSimulator" "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.framework/Info.plist" diff --git a/Scripts/build-tvos-universal.sh b/Scripts/build-tvos-universal.sh index 364e51d..dd21f09 100755 --- a/Scripts/build-tvos-universal.sh +++ b/Scripts/build-tvos-universal.sh @@ -44,3 +44,6 @@ lipo \ "${SIMULATOR_DIR}/${FRAMEWORK_BINARY}" \ -create -output "${BUILT_PRODUCTS_DIR}/${FRAMEWORK_BINARY}" echo "Final framework architectures: $(lipo -archs "${BUILT_PRODUCTS_DIR}/${FRAMEWORK_BINARY}")" + +echo "Appending simulator to Info.plist" +plutil -insert CFBundleSupportedPlatforms.1 -string "AppleTVSimulator" "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.framework/Info.plist"