Go inside yourself. Looks like an error in Xcode 6.3 beta 4.
I analyzed the project.pbxproj file (in text form) of the newly created project with the WatchKit extension. There seems to be a setup:
IPHONEOS_DEPLOYMENT_TARGET = 8.2;
... which is absent in our projects created with earlier versions of Xcode.
So, I manually copied this parameter in the Debug and Release configuration of my project. This error has disappeared.
Then I got another version mismatch error between my application and the target WatchKit application. Correcting the inconsistency of this version allowed the assembly to compile clean and work fine.
I know this is a bit of hacks, but I guess it is relatively safe.
When searching in the project.pbxproj file, you need to match this search query: "_WatchKit_Extension" . This should define the area next to the new instruction.
Discussion topic in Apple forums:
https://devforums.apple.com/thread/266033?tstart=0
Excerpt from the new project:
4F9F32751AC2024F00673D86 = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", ); IBSC_MODULE = Bogus_WatchKit_Extension; INFOPLIST_FILE = "Bogus WatchKit App/Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 8.2; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = 4; "TARGETED_DEVICE_FAMILY[sdk=iphonesimulator*]" = "1,4"; }; name = Debug; }; 4F9F32761AC2024F00673D86 = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; IBSC_MODULE = Bogus_WatchKit_Extension; INFOPLIST_FILE = "Bogus WatchKit App/Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 8.2; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = 4; "TARGETED_DEVICE_FAMILY[sdk=iphonesimulator*]" = "1,4"; }; name = Release; };
Daniel Mar 25 '15 at 7:36 2015-03-25 07:36
source share