运行功能后
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
Run Code Online (Sandbox Code Playgroud)
发生了崩溃:
Assertion failure in
-[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', `enter code here`reason: 'Application windows are expected to have a root view controller at the end of application launch'
*** First throw call stack:
(
0 CoreFoundation 0x0000000109377885 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000108df0df1 objc_exception_throw + 48
2 CoreFoundation 0x00000001093776ea +[NSException raise:format:arguments:] + 106
3 Foundation 0x0000000108a42bb1 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198
4 UIKit 0x000000010760e350 -[UIApplication _runWithMainScene:transitionContext:completion:] + 2875
5 …Run Code Online (Sandbox Code Playgroud) 我注意到在使用故事板时在iOS 9上运行我的应用程序时,控制台中出现以下错误.我正在使用xCode7.这是我需要关注的吗?
-[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:completion:] ** unhandled action -> <FBSSceneSnapshotAction: 0x176bfb20> {
handler = remote;
info = <BSSettings: 0x176a5d90> {
(1) = 5;
};
}
Run Code Online (Sandbox Code Playgroud) error-handling uistoryboard transition-coordinator ios9 xcode7
Xcode 7 beta 3刚安装了一些"附加组件"(现在版本7.0 beta 3(7A152u)),现在我收到编译器错误:
ld: '/<abbreviated>/Vendor/Analytics/GoogleAnalytics/libAdIdAccess.a(TAGActualAdIdAccess.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
此Google代码帖子是我发现的GA和bitcode的唯一提及.
如果我只能为这个库禁用它而不是完全禁用bitcode会很好.那可能吗?
这个答案提供了一个默认启用bitcode的解决方案,这最终可能是一个更通用的问题.
Xcode 7引入了Bitcode,这是一种LLVM中间二进制文件,这意味着Apple的服务器可以在不参与的情况下为不同的架构重新编译我的应用程序.
在Lookback中,我使用我们的库分发静态存档框架.似乎当你用"Build&Archive"构建任何东西时,bitcode实际上并没有发布到我的库中,任何在我们的应用程序中与我的库链接并尝试使用Bitcode进行构建和存档的人将获得其中一个两个警告:
ld: 'Lookback(Lookback.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. (如果lib是使用Xcode 6构建的)ld: warning: full bitcode bundle could not be generated because 'Lookback(Lookback.o)' was built only with bitcode marker. The library must be generated from Xcode archive build with bitcode enabled (Xcode setting ENABLE_BITCODE) (如果lib是使用带有正常xcodebuild的Xcode 7构建的)我有一个构建脚本,构建一个设备+模拟器通用二进制文件,所以我不能使用Build&Archive,而是xcodebuild从我的脚本从命令行运行.如何xcodebuild生成适当的bitcode启用库?
最近我收到错误:"找不到开发人员磁盘映像"
我认为这是因为我在iPhone上将iOS更新为9.1.如何解决问题并使Xcode支持iOS 9.1设备?
使用外部框架时,Xcode现在有一个嵌入式二进制文件和链接框架部分.
当您下载外部框架和Finder->将其拖入Xcode时,它会将框架放入Linked Frameworks and Libraries部分.
当您使用Carthage构建库时,建议您拖入嵌入式二进制文件部分.
两者似乎都在链接方面起作用,因为API可用于任何一种方式,在嵌入式二进制文件部分中添加框架时,它也会自动添加到" 链接的框架和库"部分中.
那么,谁是对的?迦太基或其他互联网?为什么有两个选项可以将外部资源包含到Xcode项目中?
我有一个应用程序我想提交给Apple.我已经验证了它.我正在使用Xcode 7和Swift 2.当我尝试提交给Apple时,我收到以下错误:
ERROR ITMS-90474:"捆绑无效.iPad多任务支持需要有方向:'UIInterfaceOrientationPortrait,UIIinterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight'.在捆绑中找到'UIInterfaceOrientationPortrait'.
我该怎么办?我用他们要求的名字制作一些图像吗?
我正在使用xcode 7.1并尝试通过xcode直接将我的应用上传到应用商店.上传时我得到一个奇怪的错误: -
无法验证客户端3000
注意: - 我最近在帐户中进行了更改(xcode首选项部分).这与我的错误有关吗?
我也重新启动了xcode,但仍然存在问题?
我已经开始与OCMock合作为我已经集成到项目工作区的现有项目编写测试用例.完成此链接中提到的所有步骤后
当我第一次执行我的测试用例时,它给了我这个错误.我搜索了它并尝试了一些解决方案,如"创建新目标","重新启动Xcode",但它没有帮助我.任何的想法?
我试图通过点击搜索栏中的"取消"按钮来关闭搜索字段.
测试用例未能找到取消按钮.它在Xcode 7.0.1中运行良好
我添加了谓词等待按钮出现.当我们点击"取消"按钮时,测试用例失败
let button = app.buttons[“Cancel”]
let existsPredicate = NSPredicate(format: "exists == 1")
expectationForPredicate(existsPredicate, evaluatedWithObject: button, handler: nil)
waitForExpectationsWithTimeout(5, handler: nil)
button.tap() // Failing here
Run Code Online (Sandbox Code Playgroud)
日志:
t = 7.21s Tap SearchField
t = 7.21s Wait for app to idle
t = 7.29s Find the SearchField
t = 7.29s Snapshot accessibility hierarchy for com.test.mail
t = 7.49s Find: Descendants matching type SearchField
t = 7.49s Find: Element at index 0
t = 7.49s Wait for app to idle …Run Code Online (Sandbox Code Playgroud)