“IOS开发”的版本间的差异

来自Alex's wiki
跳转至: 导航搜索
第6行: 第6行:
 
问题:
 
问题:
 
  <nowiki>Could not find test host for qianqianjunziTests: TEST_HOST evaluates to "/Users/qiaochenglei/Library/Developer/Xcode/DerivedData/qianqianjunzi-cauwygyctcbckvfvdrqgvqfffagk/Build/Products/Debug-iphoneos/qianqianjunzi.app/qianqianjunzi"</nowiki>
 
  <nowiki>Could not find test host for qianqianjunziTests: TEST_HOST evaluates to "/Users/qiaochenglei/Library/Developer/Xcode/DerivedData/qianqianjunzi-cauwygyctcbckvfvdrqgvqfffagk/Build/Products/Debug-iphoneos/qianqianjunzi.app/qianqianjunzi"</nowiki>
解决:
+
 
 +
[http://stackoverflow.com/questions/37847807/xcode-8-beta-convert-to-current-swift-syntax-failed-could-not-find-test-host 解决:]
 
  <nowiki>This worked for me:
 
  <nowiki>This worked for me:
  

2016年9月23日 (五) 06:40的版本

App开发

Swift 3 中的新特性


问题:

Could not find test host for qianqianjunziTests: TEST_HOST evaluates to "/Users/qiaochenglei/Library/Developer/Xcode/DerivedData/qianqianjunzi-cauwygyctcbckvfvdrqgvqfffagk/Build/Products/Debug-iphoneos/qianqianjunzi.app/qianqianjunzi"

解决:

This worked for me:

Select the Xcode project in the lefthand browser.
Click on your test target in the Project's General tab.
Disclose "Testing". In my project the "Host Application" pulldown button was blank. Select your appropriate host application.
Try building your test target now. If that succeeds then converting syntax should as well.
I had this problem after installing the Xcode 8 beta so I assume this is related.