Because the order in which the frameworks were copied (simulator vs
device) could vary, sometimes we ended up with the Info.plist used by
the simulator, which upsets iTunesConnect with the following message:
[12:54:45]: ERROR ITMS-90542: "Invalid CFBundleSupportedPlatforms value. The key 'CFBundleSupportedPlatforms' in the Info.plist file in bundle 'Payload/Skyscanner.app/Frameworks/OAStackView.framework/OAStackView.bundle' contains an invalid value '[iPhoneSimulator]'. Consider removing the CFBundleSupportedPlatforms key from the Info.plist. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue."
Fix is to copy the simulator frameworks first, so the device Info.plist
overwrites it.
@neonichu Not sure if this is the right fix or not (what should actually be in the Info.plist for a fat framework?), but it resolves the immediate issue for me at least!
Because the order in which the frameworks were copied (simulator vs device) could vary, sometimes we ended up with the Info.plist used by the simulator, which upsets iTunesConnect with the following message:
[12:54:45]: ERROR ITMS-90542: "Invalid CFBundleSupportedPlatforms value. The key 'CFBundleSupportedPlatforms' in the Info.plist file in bundle 'Payload/Skyscanner.app/Frameworks/OAStackView.framework/OAStackView.bundle' contains an invalid value '[iPhoneSimulator]'. Consider removing the CFBundleSupportedPlatforms key from the Info.plist. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue."
Fix is to copy the simulator frameworks first, so the device Info.plist overwrites it.