Reputation: 9
Problem:
At some point I noticed my iOS app with an iOS Share Extension can't launch on iOS simulator.
The main error message was this:
Your target is built for iOS but contains embedded content built for the iOS platform (...-share.appex), which is not allowed
The full error message:
ValidateEmbeddedBinary /Users/olehkopyl/Library/Developer/Xcode/DerivedData/instagram-downloader-eyyoimtlrlmitkcsgtcfdwmtarnt/Build/Products/Debug-iphonesimulator/instagram-downloader.app/PlugIns/instagram-downloader-share.appex (in target 'instagram-downloader' from project 'instagram-downloader')
cd /Users/olehkopyl/Dropbox/Development/Swift/iOS/instagram-downloader
/Applications/Xcode.app/Contents/Developer/usr/bin/embeddedBinaryValidationUtility /Users/olehkopyl/Library/Developer/Xcode/DerivedData/instagram-downloader-eyyoimtlrlmitkcsgtcfdwmtarnt/Build/Products/Debug-iphonesimulator/instagram-downloader.app/PlugIns/instagram-downloader-share.appex -signing-cert - -info-plist-path /Users/olehkopyl/Library/Developer/Xcode/DerivedData/instagram-downloader-eyyoimtlrlmitkcsgtcfdwmtarnt/Build/Products/Debug-iphonesimulator/instagram-downloader.app/Info.plist
error: Your target is built for iOS but contains embedded content built for the iOS platform (instagram-downloader-share.appex), which is not allowed.
Upvotes: 0
Views: 52
Reputation: 9
Solution:
I went to my main app target settings (not Share Extension's target settings) -> Info tab -> Removed CFBundleSupportedPlatforms
key.
Upvotes: 0