我一直尝试使用最新版本的Xcode 7.0.1(7月28日发布的7A1001)以及之前版本的Xcode 7(7A218)以及Xcode 7.1 Beta 2来配置我的设备(通过Instruments) (7B75).
我的设备是安装了iOS 9.0.1的iPhone 6+ - iOS9的最新GM版本.我可以毫无问题地在这个设备上运行/调试应用程序.
在下面的屏幕截图中,您可以看到我的设备在所有版本的所有屏幕截图中都被禁用(灰显).我能够分析运行iOS 8.4.1的其他设备,没有任何问题.
当前版本的Xcode是否不支持针对iOS 9.0.1的分析,或者是否存在某种配置设置或已知的解决方法?
我有一个从互联网上下载的Xcode项目,所以我不知道用哪个Xcode版本来编写它但语言是Swift 2.我在Xcode 7.1 beta 1中打开它,我得到以下编译时错误.
无法通过CoreSimulator spawn启动IBCocoaTouchImageCatalogTool
我删除了DerviedData foler,清理并多次构建项目.尝试将项目转换为最新的Swift语法,但它说没有什么可以转换的.
我完全没有想法了.建议?
这是我的自定义视图,其中"LondonStreet"
是一个按钮.
当我点击那个按钮时,我得到url并在Safari中打开它(它可以工作).然后我可以回去,使用"Back to Wishlist"
按钮(它也有效).
问题是当我尝试在UITests下测试它时.
itemsTable.cells.elementBoundByIndex(0).buttons["addressButton"].tap() //press the button to open link in Safari
Run Code Online (Sandbox Code Playgroud)
除此之外:
app.statusBars.buttons["Back to Wishlist"].tap() //go back, doesn't work, although it was recorded by Xcode itself.
Run Code Online (Sandbox Code Playgroud)
是一个错误:
UI测试失败 - 无法在5秒内获得屏幕截图.
还有问题导航器
UI测试失败 - 无法及时更新应用程序状态.
从Xcode 7.0 Beta 3更新到7.1 Beta(包括7.0 GM在内的所有中间版本都有我的项目的崩溃启动错误,该错误仅在7.1 Beta中修复)由于以下原因,我无法构建我的项目错误:
CompileStoryboard MyApp/Resources/Storyboards/Main.storyboard
cd /Users/me/Developer/my-app
export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode-beta.app/Contents/Developer/usr/bin/..
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module MyApp --output-partial-info-plist /Users/me/Library/Developer/Xcode/DerivedData/MyApp-bwakexzthboxucdaodqtbbbwgsaz/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Main-SBPartialInfo.plist --auto-activate-custom-fonts --target-device iphone --minimum-deployment-target 8.0 --output-format human-readable-text --compilation-directory /Users/me/Developer/my-app/MyApp/Resources/Storyboards/Main.storyboard
/ com.apple.ibtool.errors */
: error: Not enough arguments provided; where is the input document to operate on?
Run Code Online (Sandbox Code Playgroud)
Xcode配置为使用Xcode 7.1(7B60)命令行工具:
$ xcode-select -p
/Applications/Xcode-beta.app/Contents/Developer
Run Code Online (Sandbox Code Playgroud)
并且ibtool
似乎是正确的版本:
$ ibtool --version
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-/
<plist version="1.0">
<dict>
<key>com.apple.ibtool.version</key>
<dict>
<key>bundle-version</key>
<string>9046</string>
<key>short-bundle-version</key>
<string>7.1</string>
</dict>
</dict>
</plist> …
Run Code Online (Sandbox Code Playgroud) 尝试在我的iPad上安装iOS 9.0 GM的Xcode 7.1 Beta(7B60)运行我的应用程序时出现以下错误:
在此设备上启用开发时遇到错误.
请尝试重新启动并重新连接设备.(0xE8000076)
这个问题有解决方法吗?Apple开发者论坛有一个相关的帖子,但没有解决方案
在我的自定义类中,WLNetworkClient
我必须实现这样的方法:
required init(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
Run Code Online (Sandbox Code Playgroud)
我不需要使用它,但我想测试这个以实现100%的代码覆盖率.你知道如何实现这个目标吗?
我尝试了以下方式但没有成功:
let nc = WLNetworkClient(coder: NSCoder())
XCTAssertNotNil(nc)
Run Code Online (Sandbox Code Playgroud) 我安装了最新的Xcode 7.1 beta并尝试在iPad Pro Simulator上运行我的项目.一切都是正确的,所有功能都正常.
但我的屏幕尺寸有问题......
在应用程序的主屏幕上,我运行下一个日志:
NSLog(@"%f", self.view.bounds.size.width);
Run Code Online (Sandbox Code Playgroud)
我有1024个横向方向.但是当我在Xcode 7.1中创建一个新的应用程序并在主屏幕上运行相同的代码时,我得到另一个值:1366.
今天我计划使用Araxis Merge在旧Xcode(6.4)和最新beta 7.1中创建的项目文件之间找到差异.
你现在如何为我的旧项目解决这个问题?
我需要访问以下按钮:
这条线很好用:
app.buttons["Reorder 1, $27 000, LondonStreet, ok, Pending"]
Run Code Online (Sandbox Code Playgroud)
但这不是:
app.buttons.elementMatchingPredicate(NSPredicate(format: "accessibilityTitle BEGINSWITH[cd] %@", "Reorder 1"))
Run Code Online (Sandbox Code Playgroud) 我试图从我的iOS应用程序上传一个tvOS应用程序作为目标但是我不确定捆绑标识符应该是什么?它应该与iOS应用程序相同com.mywebsite.myapp.tvosapp
还是不同?
谢谢
xcode7.1beta ×10
xcode ×6
ios ×5
swift ×5
ios9 ×3
xcode7 ×2
account ×1
iphone ×1
objective-c ×1
submission ×1
swift2 ×1
tvos ×1
uistoryboard ×1
unit-testing ×1