对于上述配置,我的iPhone应用程序遇到构建问题。我的应用程序运行正常
在Snow Leapord Xcode 3.2.5和SDK 4.2上。
这是我得到的错误。
1)
DataModelCompile/用户/roopeshm/库/开发人员/Xcode/DerivedData/Pinecone-blpusijjphhmenddbrefttvxgsyl/Build/Products/Debug-iphonesimulator/Pinecone.app/LRWLogs.mom LRWLogs.xcdatamodeld/LRWLogs.xcdatamodel
cd“/用户/roopeshm/项目/PineCone/最新的PineCone 07282011/Pinecone/iphone”
setenv路径“/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”
/Developer/usr/bin/momc -XD_MOMC_SDKROOT =/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -XD_MOMC_IOS_TARGET_VERSION = 4.0 -MOMC_PLATFORMS iphonesimulator -MOMC_PLATD_SSION/iPhone = 1 -iPhone/PineCone/最新的PineCone 07282011/Pinecone/iphone/LRWLogs.xcdatamodeld/LRWLogs.xcdatamodel“/Users/roopeshm/Library/Developer/Xcode/DerivedData/Pinecone-blpusijjphhmenddbrefttvxgsyl/Build/cons/Apps/Debug-App。妈妈
命令/Developer/usr/bin/momc失败,退出代码为1
2)
ld/用户/roopeshm/库/开发人员/Xcode/DerivedData/Pinecone-blpusijjphhmenddbrefttvxgsyl/Build/Products/Debug-iphonesimulator/Pinecone.app/Pinecone正常的i386
cd“/用户/roopeshm/项目/PineCone/最新的PineCone 07282011/Pinecone/iphone”
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv路径“/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 -arch i386 -isysroot/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/Users/roopeshm/Library/开发人员/Xcode/DerivedData/Pinecone-blpusijjphhmenddbrefttvxgsyl/Build/产品/Debug-iphonesimulator“-L/Users/roopeshm/Projects/PineCone/最新的PineCone 07282011/Pinecone/iphone/GData/bin/Debug-iphonesimulator” -L。 ../SDK/qo/lib -L ../../SDK/openssl-fips-1.2.3 -L/Users/roopeshm/Library/Developer/Xcode/DerivedData/Pinecone-blpusijjphhmenddbrefttvxgsyl/Build/Products/Debug- iphonesimulator -L ../../SDK/qo/lib“-L/Users/roopeshm/Projects/PineCone/最新的PineCone 07282011/Pinecone/iphone”“-L/Users/roopeshm/Projects/PineCone/最新的PineCone 07282011/Pinecone/iphone/../../SDK/sqlcipher/lib“” -L/Users/roopeshm/Projects/PineCone/最新的PineCone 07282011/Pinecone/iphone/../../SDK/openssl-fips-1.2。 3/lib” -F/Users/roopeshm/Library/Developer/Xcode/DerivedData/Pinecone-blpusijjphhmenddbrefttvxgsyl/Build/产品/Debug-iphonesimulator-文件列表/Users/roopeshm/Library/Developer/Xcode/DerivedData/Pinecone-blpusijjphhmenddbrefttvxgsyl/Build/Intermediates/Pinecone.build/Debug-iphonesimulator/Pinecone.build/Objects-normal/i386 .LinkFileList -mmacosx-version-min = 10.6 -Xlinker -objc_abi_version -Xlinker 2 -lGDataTouchStaticLib -lxml2 -all_load -ObjC -lsqlcipher/Users/roopeshm/Library/Developer/Xcode/DerivedData/Pinecone-blpusijttphxendx iphonesimulator/libThree20.a/Users/roopeshm/Library/Developer/Xcode/DerivedData/Pinecone-blpusijjphhmenddbrefttvxgsyl/Build/Products/Debug-iphonesimulator/libcrypto.a/Users/roopeshm/Library/Developer/Xcode/Dejedph-DerivedData构建/产品/Debug-iphonesimulator/libsqlcipher.a/用户/roopeshm/库/开发人员/Xcode/DerivedData/Pinecone-blpusijjphhmenddbrefttvxgsyl/构建/产品/Debug-iphonesimulator/libiOSCommon.a/用户/roopeshm/Xcode/Developer/DerivedData/Pinecone-blp usijjphhmenddbrefttvxgsyl/Build/Products/Debug-iphonesimulator/libZipArchive.a -framework Foundation -framework UIKit -framework CoreGraphics -framework CFNetwork -lz -framework QuartzCore -framework AddressBook -framework AddressBookUI -framework AudioToolbox -framework AVFoundation -framework CoreAudio -framework CoreFoundation-框架CoreText-框架GameKit-框架MediaPlayer-框架MessageUI-框架OpenGLES-框架安全-框架SystemConfiguration -lxml2-框架CoreTelephony-框架MobileCoreServices-框架CoreLocation-框架MapKit-框架EventKit -lsqlite3 -o/Users/roopeshm/Library/开发人员/Xcode/派生数据/Pinecone-blpusijjphhmenddbrefttvxgsyl/构建/产品/Debug-iphonesimulator/Pinecone.app/Pinecone
命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2失败,退出代码为1
3)
GenerateDSYMFile/Users/roopeshm/Library/Developer/Xcode/DerivedData/Pinecone-blpusijjphhmenddbrefttvxgsyl/Build/Products/Debug-iphonesimulator/Pinecone.app.dSYM/Users/roopeshm/Library/Developer/Xcode/Refdb/Refdv/gcode/Decode-DerivedData产品/Debug-iphonesimulator/Pinecone.app/Pinecone
cd“/用户/roopeshm/项目/PineCone/最新的PineCone 07282011/Pinecone/iphone”
setenv路径“/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”
/Developer/usr/bin/dsymutil/Users/roopeshm/Library/Developer/Xcode/DerivedData/Pinecone-blpusijjphhmenddbrefttvxgsyl/Build/Products/Debug-iphonesimulator/Pinecone.app/Pinecone -o/Users/roopeshm/Library/Developer/DerivedData/Pinecone-blpusijjphhmenddbrefttvxgsyl/Build/Products/Debug-iphonesimulator/Pinecone.app.dSYM
错误:无法打开可执行文件'/Users/roopeshm/Library/Developer/Xcode/DerivedData/Pinecone-blpusijjphhmenddbrefttvxgsyl/Build/Products/Debug-iphonesimulator/Pinecone.app/Pinecone'
我想我由于前2个错误而收到此错误(3)。在过去的两天里,我一直对此错误感到震惊,并且没有继续进行下去。
如果有人对如何解决此问题有所了解,那将是一个很大的帮助。
谢谢。
最佳答案
我没有完整的答案,看来原始错误是由于您的Core Data模型造成的。检查版本是否具有扩展名为“.xcdatamodel”而不是“.xcdatamodeld”的数据模型。
在转换文件之前,它似乎无法编译您的Core Data模型。
祝好运!