ios - Xcode:momc 无法在旧项目中编译 .mom 文件
<p><p>我正在尝试构建去年的旧 Xcode 项目,但我从 momc 收到以下错误。我尝试过恢复到 Xcode 5.1.1,然后是 Xcode 5.0,但没有任何区别。当我上次使用它时,该项目构建得很干净。</p>
<pre><code>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 *** -: 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'
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>似乎是 OS X 10.10 Yosemite 的错误。 Build 在运行 Mavericks 的机器上运行良好。</p>
<p>在 <a href="http://openradar.appspot.com/radar?id=6385584100605952" rel="noreferrer noopener nofollow">rdar://17654563</a> 向苹果提交雷达</p></p>
<p style="font-size: 20px;">关于ios - Xcode:momc 无法在旧项目中编译 .mom 文件,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/24702606/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/24702606/
</a>
</p>
页:
[1]