Remove some keys from resources plist

Need to remove keys in plist that reference being built for the simulator as ITMS has started rejecting apps with those, even though it is a non-binary resource bundle.
This commit is contained in:
Brian Dorfman 2016-08-31 13:33:52 -07:00
parent 51746dcd35
commit 366e465d78
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ fi
echo "building static framework..."
xcodebuild build -workspace Stripe.xcworkspace -scheme StripeiOSStaticFramework -configuration Release OBJROOT=$BUILDDIR SYMROOT=$BUILDDIR | xcpretty -c
cd $BUILDDIR/Release-iphonesimulator
plutil -remove DTSDKName Stripe.bundle/Info.plist
plutil -remove DTPlatformName Stripe.bundle/Info.plist
plutil -remove CFBundleSupportedPlatforms Stripe.bundle/Info.plist
mv Stripe.bundle Stripe.framework
ditto -ck --rsrc --sequesterRsrc --keepParent Stripe.framework StripeiOS-Static.zip
rm -rf Stripe.framework