ios - XCode 7: xcdatamodeld doesn’t exist -
after updating xcode 7 in order support ios9 had following build error
error: cannot read bundle contents (error domain=nscocoaerrordomain code=260 "the folder “voip.xcdatamodeld” doesn’t exist.
build target mytitle of project mytitle configuration debug
datamodelcompile build/products/debug-iphoneos/mytitle.app/ /users/myself/mydev/m1/app/voip/voip/voip.xcdatamodeld cd /users/myself/mydev/m1/app/app/iphone export path="/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/usr/bin:/applications/xcode.app/contents/developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" /applications/xcode.app/contents/developer/usr/bin/momc --sdkroot /applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos9.0.sdk --iphoneos-deployment-target 7.0 --module mytitle /users/myself/mydev/m1/app/voip/voip/voip.xcdatamodeld /users/myself/mydev/m1/app/app/iphone/build/products/debug-iphoneos/mytitle.app/
/users/myself/mydev/m1/app/voip/voip/voip.xcdatamodeld:: error: cannot read bundle contents (error domain=nscocoaerrordomain code=260 "the folder “voip.xcdatamodeld” doesn’t exist." userinfo=0x7fd0f350f990 {nsfilepath=/users/myself/mydev/m1/app/voip/voip/voip.xcdatamodeld, nsuserstringvariant=( folder ), nsunderlyingerror=0x7fd0f350f940 "the operation couldn’t completed. (osstatus error -43.)"})
how can resolve it?
the reference file in project 1 (in .project file)
/* begin xcversiongroup section */ 449367de1338e89100db4ac9 /* mytitle.xcdatamodeld */ = { isa = xcversiongroup; children = ( 449367df1338e89100db4ac9 /* voip.xcdatamodel */, ); currentversion = 449367df1338e89100db4ac9 /* voip.xcdatamodel */; name = mytitle.xcdatamodeld; path = ../../../../voip/voip/voip.xcdatamodeld; sourcetree = "<group>"; versiongrouptype = wrapper.xcdatamodel; }; /* end xcversiongroup section */
no idea how came , why worked w/o problems in previous xcode versions.
check compile sources under build phases target setting described in below image.
i saw resources , found 1 resource without path (an unknown resource, don't know how appeared there..). remove there, clean product , run.
the above reason in case..
hope helps !!!
Comments
Post a Comment