我正在尝试构建去年的旧 Xcode 项目,但我从 momc 收到以下错误。我尝试过恢复到 Xcode 5.1.1,然后是 Xcode 5.0,但没有任何区别。当我上次使用它时,该项目构建得很干净。
DataModelVersionCompile Build/Products/Debug-iphoneos/KinsaNative.app/Kinsa.momd KinsaNative/Kinsa.xcdatamodeld
cd /Users/mike/kinsa/KinsaNativeIOS
setenv PATH "/Users/mike/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Users/mike/Desktop/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Users/mike/Desktop/Xcode.app/Contents/Developer/usr/bin/momc -XD_MOMC_SDKROOT=/Users/mike/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -MOMC_PLATFORMS iphonesimulator -MOMC_PLATFORMS iphoneos /Users/mike/kinsa/KinsaNativeIOS/KinsaNative/Kinsa.xcdatamodeld /Users/mike/kinsa/KinsaNativeIOS/Build/Products/Debug-iphoneos/KinsaNative.app/Kinsa.momd
Assertion failed: (host_bootstrap_port != MACH_PORT_NULL), function _sim_host_bootstrap_init, file /SourceCache/Interposition_Sim/Interposition_Sim-111/libSystem/system/bootstrap.c, line 26.
2014-07-11 12:35:29.483 momc[6913:142282] *** -[NSKeyedUnarchiver initForReadingWithData:]: data is empty; did you forget to send -finishEncoding to the NSKeyedArchiver?
/Users/mike/kinsa/KinsaNativeIOS/KinsaNative/Kinsa.xcdatamodeld:0: error: Compilation failed for data model at path '/Users/mike/kinsa/KinsaNativeIOS/Build/Products/Debug-iphoneos/KinsaNative.app/Kinsa.momd/Kinsa.mom'
似乎是 OS X 10.10 Yosemite 的错误。 Build 在运行 Mavericks 的机器上运行良好。
在 rdar://17654563 向苹果提交雷达
关于ios - Xcode:momc 无法在旧项目中编译 .mom 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24702606/
欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) | Powered by Discuz! X3.4 |