我有一个之前能够测试的 Mac OSX 应用程序 - 但是当我现在运行测试时 - 它会工作一次然后失败并在控制台中显示以下错误。我需要做一些激烈的事情才能让它工作:
如果我
关于我可以做些什么来永久修复它的任何想法 - 下面对我来说几乎是希腊语..
我尝试了以下方法:
2017-01-15 16:41:51.247064 XXXXXX[51736:892136] Unable to load configuration data from specified path /var/folders/59/7ylv57053bv3c0rbbcc1mcg40000gp/T/com.apple.dt.XCTest/FDF2A461-45D7-4E64-B650-602DF0725CA7/remote-container/tmp/XXXXXXTests-FDF2A461-45D7-4E64-B650-602DF0725CA7.xctestconfiguration; error: You don’t have permission. 2017-01-15 16:41:51.247221 XXXXXX[51736:892136] IDEBundleInjection Arguments: ( "/Users/XXXXXX/XXXXXX/XXXXXX/XXXXXX-eghnritsumpbbqgylbzrxqfximew/Build/Products/Debug/XXXXXX.app/Contents/MacOS/XXXXXX", "-NSTreatUnknownArgumentsAsOpen", NO, "-ApplePersistenceIgnoreState", YES ) 2017-01-15 16:41:51.248336 XXXXXX[51736:892136] IDEBundleInjection Environment: { "APP_SANDBOX_CONTAINER_ID" = "com.XXXXXX.XXXXXX"; "Apple_PubSub_Socket_Render" = "/private/tmp/com.apple.launchd.hKPiBBDAAG/Render"; "CFFIXED_USER_HOME" = "/Users/XXXXX/Library/Containers/com.XXXXXX.XXXXXX/Data"; "DTX_CONNECTION_SERVICES_PATH" = "/Applications/Xcode.app/Contents/SharedFrameworks/DTXConnectionServices.framework"; "DYLD_FRAMEWORK_PATH" = "/Users/XXXXX/XXX/XXXXXXX/XXXXXX-eghnritsumpbbqgylbzrxqfximew/Build/Products/Debug:/Users/XXXXX/XXX/XXXXXXX/XXXXXX-eghnritsumpbbqgylbzrxqfximew/Build/Products/Debug:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks"; "DYLD_INSERT_LIBRARIES" = ""; "DYLD_LIBRARY_PATH" = "/Users/XXXXX/XXX/XXXXXXX/XXXXXX-eghnritsumpbbqgylbzrxqfximew/Build/Products/Debug:/Users/XXXXX/XXX/XXXXXXX/XXXXXX-eghnritsumpbbqgylbzrxqfximew/Build/Products/Debug:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks"; HOME = "/Users/XXXXX/Library/Containers/com.grant.XXXXXX/Data"; LOGNAME = XXXXX; MallocNanoZone = 1; NSUnbufferedIO = YES; "OS_ACTIVITY_DT_MODE" = YES; PATH = "/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"; PWD = "/Users/XXXXX/XXX/XXXXXXX/XXXXXX-eghnritsumpbbqgylbzrxqfximew/Build/Products/Debug"; SHELL = "/bin/bash"; "SSH_AUTH_SOCK" = "/private/tmp/com.apple.launchd.dNK7oacOAX/Listeners"; TMPDIR = "/var/folders/59/7ylv57053bv3c0rbbcc1mcg40000gp/T/com.grant.XXXXXX/"; USER = XXXXX; XCInjectBundleInto = "/Users/XXXXX/XXX/XXXXXXX/XXXXXX-eghnritsumpbbqgylbzrxqfximew/Build/Products/Debug/XXXXXX.app/Contents/MacOS/XXXXXX"; "XCODE_DBG_XPC_EXCLUSIONS" = "com.apple.dt.xctestSymbolicator"; XCTestConfigurationFilePath = "/var/folders/59/7ylv57053bv3c0rbbcc1mcg40000gp/T/com.apple.dt.XCTest/FDF2A461-45D7-4E64-B650-602DF0725CA7/remote-container/tmp/XXXXXXTests-FDF2A461-45D7-4E64-B650-602DF0725CA7.xctestconfiguration"; "XPC_FLAGS" = 0x0; "XPC_SERVICE_NAME" = "com.apple.dt.Xcode.23100"; "__CF_USER_TEXT_ENCODING" = "0x1F6:0x0:0x2"; "__XCODE_BUILT_PRODUCTS_DIR_PATHS" = "/Users/XXXXX/XXX/XXXXXXX/XXXXXX-eghnritsumpbbqgylbzrxqfximew/Build/Products/Debug"; "__XPC_DYLD_FRAMEWORK_PATH" = "/Users/XXXXX/XXX/XXXXXXX/XXXXXX-eghnritsumpbbqgylbzrxqfximew/Build/Products/Debug"; "__XPC_DYLD_LIBRARY_PATH" = "/Users/XXXXX/XXX/XXXXXXX/XXXXXX-eghnritsumpbbqgylbzrxqfximew/Build/Products/Debug"; }
最佳答案
在 Xcode 9 中,我找到了一个适合我的解决方案。
转到 Xcode > File > Project Settings...(或 Workspace Settings...)
选择 New Build System (Preview) 作为 Shared Settings 下的 Build System。
确保选择“Per-User Project Settings”下的Use Shared Setting。
关于swift - Xcode 8.2 : Unable to load configuration data from specified path/permission error in Mac OSX App:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41663727/