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

来自Alex's wiki
跳转至: 导航搜索
第5行: 第5行:
  
  
问题:
+
从2到3转换时的问题:
 
  <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>
  

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

App开发

Swift 3

Swift 3 中的新特性


从2到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.