I have a iOS + WatchKit app that compiles and runs fine on my computer, but fails to compile on my coworker's machine. The error seems to be a bad path being generated during the compilation of the Assets.xcassets catalog in the Watch App. As you can see in the build output below, the actool is trying to create a SQLite store at
/tmpUntitled-AUmDGI27.uicatalog, instead of what should probably be /tmp/Untitled-AUmDGI27.uicatalog. This fails because Xcode does not have write permissions to /. This only happens with the xcasstets file in the Watch App & Watch Extension; there's no problem compiling the xcassets from the main iOS app. Does anyone have any idea why this might be happening, or how to work around it (aside from `chmod 777 /`)?2016-05-21 14:54:10.425 IBCocoaTouchImageCatalogTool[68243:3281850] CoreData: error: -addPersistentStoreWithType:SQLite configuration:(null) URL:file:///tmpUntitled-AUmDGI27.uicatalog options:{
NSPersistentStoreRemoveStoreOnCleanup = 1;
NSSQLitePragmasOption = {
"journal_mode" = delete;
};
} ... returned error Error Domain=NSCocoaErrorDomain Code=513 "The file couldn’t be saved because you don’t have permission." with userInfo dictionary {
}
/* com.apple.actool.errors */
/Users/username/Developer/Test/Test WatchKit App/Assets.xcassets: error: The file couldn’t be saved because you don’t have permission.
Failure Reason: You don’t have permission.
Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info.
/* com.apple.actool.compilation-results */
/Users/username/Library/Developer/Xcode/DerivedData/Test-dsercdyqcijwyjdckwujtedeelll/Build/Intermediates/Test.build/Debug-watchsimulator/Test WatchKit App.build/assetcatalog_generated_info.plist