在Xcode中,当尝试从终端构建项目时出现以下错误

时间:2018-07-25 14:04:07

标签: ios xcode appium-ios

我正在尝试用xcode构建项目,并且显示以下错误:

**Details:**
OS: 11.3.1
Appium: 1.8.1
Xcode: 9.4.1

错误:

  

CodeSign   /用户/ XXXXX /库/开发人员/Xcode/DerivedData/WebDriverAgent-brdadhpuduowll​​givnnvuygpwhzy/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app       cd / usr / local / lib / node_modules / appium / node_modules / appium-xcuitest-driver / WebDriverAgent       导出CODESIGN_ALLOCATE = / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / bin / codesign_allocate       导出PATH =“ / Applications / Xcode.app / Contents / Developer / Platforms / iPhoneOS.platform / Developer / usr / bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/ usr / local / opt / libxml2 / bin:/ usr / local / opt / icu4c / sbin:/ usr / local / opt / icu4c / bin:/ usr / local / bin:/ usr / bin:/ bin:/ usr / sbin:/ sbin“        签名身份:“ iPhone开发人员:Avnish Kumar(XXXXL8VX5D)”配给配置文件:“ iOS Team配给配置文件:*”                         (1c00952c-b81c-4320-a85e-6b8e345d99db)

/usr/bin/codesign --force --sign 2EF8A21F8016E161291E9D3CF4385C9BE954ECE5 --deep --entitlements
     

/Users/synerzip/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowll​​givnnvuygpwhzy/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner.xctest.xcent- / synerzip /库/开发人员/Xcode/DerivedData/WebDriverAgent-brdadhpuduowll​​givnnvuygpwhzy/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app   /Users/synerzip/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowll​​givnnvuygpwhzy/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app:   替换现有签名警告:无法建立链到   签名者的自签名根目录“ iPhone开发人员:Avnish Kumar   (H95UL8VX5D)“警告:无法建立到自签名根的链   签署人“ iPhone开发人员:Avnish Kumar(XXXUL8VX5D)”警告:无法   为签名者“ iPhone开发人员:Avnish建立到自签名根的链   Kumar(XXXUL8VX5D)”

     

writeDictToFile:1278 ====已成功将清单缓存写入到   /var/folders/jh/qph34py131n24_08fg7jfskm0000gp/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/41fd2302df517875c19a87caf572b16f/1f397adabb774ab506dfa4464ea90642b90e9b39/Manif   dyld:库未加载:@ rpath / XCTest.framework / XCTest引用   从:   /var/containers/Bundle/Application/01AAE80E-A8A5-4B39-ABFC-55F04C4F6E13/WebDriverAgentRunner-Runner.app/WebDriverAgentRunner-Runner   原因:找不到合适的图像。确实找到了:     /private/var/containers/Bundle/Application/01AAE80E-A8A5-4B39-ABFC-55F04C4F6E13/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest:   代码签名阻止了mmap()   '/private/var/containers/Bundle/Application/01AAE80E-A8A5-4B39-ABFC-55F04C4F6E13/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest'     /private/var/containers/Bundle/Application/01AAE80E-A8A5-4B39-ABFC-55F04C4F6E13/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest:   代码签名阻止了mmap()   '/private/var/containers/Bundle/Application/01AAE80E-A8A5-4B39-ABFC-55F04C4F6E13/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest'   2018-07-25 19:21:32.471 xcodebuild [3293:60965]错误   域= IDETestOperationsObserverErrorDomain代码= 6“早期意外   退出,操作从未完成引导-不会重新启动   已尝试“ UserInfo = {NSLocalizedDescription =早期意外退出,   操作从未完成引导-不会尝试重新启动}

测试失败:     提前意外退出,操作从未完成引导-不会尝试重新启动

0 个答案:

没有答案