在路径,Xcode 6 GM种子上创建LLDB目标时出错 [英] Error creating LLDB target at path, Xcode 6 GM seed

查看:104
本文介绍了在路径,Xcode 6 GM种子上创建LLDB目标时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我构建Xcode 6 GM Seed时,我都会收到此错误。它似乎使我的应用程序疯狂地慢。这究竟是什么意思,我该如何解决?

I'm getting this error whenever I build in Xcode 6 GM Seed. It seems to be making my app insanely slow. What exactly does this mean and how do I fix it?

我遇到以下错误:


警告:在路径.....时创建LLDB目标时出错 - 使用空的
LLDB目标,这会导致从远程设备读取内存缓慢。

Warning: Error creating LLDB target at path '.....'- using an empty LLDB target which can cause slow memory reads from remote devices.

PS :我无法运行我的应用程序,它卡在启动画面上

PS: im not able to run my app, its stuck on the splash screen

推荐答案

Apple开发者论坛中有一个主题, https: //devforums.apple.com/message/1010068#1010068 ,介绍如何诊断此问题。我有Xcode 6 GM Seed的问题,特别是版本6.0.1(6A317)。这不一定是一个解决方案,但它可以帮助一些人获得更好的诊断

There is a thread in the Apple Developer Forum, https://devforums.apple.com/message/1010068#1010068 that describes how to diagnose this issue. I had his issue for Xcode 6 GM Seed, specifically - Version 6.0.1 (6A317). This isn't necessarily a solution, but it may help some people get a better diagnosis

有用的步骤如下 -

Useful steps are as follows -

1)创建或修改〜/ .lldbinit 并添加 log enable -f /tmp/lldb-api.txt lldb api 到它。

1) Create or modify your ~/.lldbinit and add log enable -f /tmp/lldb-api.txt lldb api to it.

2)重新运行调试器会话(无需重启Xcode或其他任何东西)

2) Rerun your debugger session (no need to restart Xcode or anything)

3)检查 /tmp/lldb-api.txt 中的文件。查找以 SBDebugger :: CreateTarget(...)开头的行。我看起来像这样

3) Inspect the file at /tmp/lldb-api.txt. Look for a line beginning with SBDebugger::CreateTarget(...). Mine looked something like this


SBDebugger(0x7f83671fd600):: CreateTarget
(filename =/ Users / xxxxxxx / Library / Developer /Xcode/DerivedData/Dino-gjuxikhuyokkqufeqmesmgjcxylu/Build/Products/Debug-iphonesimulator/Dino.app,
triple = x86_64,platform_name =(null),add_dependent_modules = 1,
error =指定的架构' x86_64'与
'/ Users / xxxxxxx / Library / Developer / Xcode / DerivedData / Dino-gjuxikhuyokkqufeqmesmgjcxylu / Build / Products / Debug-iphonesimulator / Dino中的
'i386-apple-ios'不兼容。 app / Dino')
=> SBTarget(0x0)

SBDebugger(0x7f83671fd600)::CreateTarget (filename="/Users/xxxxxxx/Library/Developer/Xcode/DerivedData/Dino-gjuxikhuyokkqufeqmesmgjcxylu/Build/Products/Debug-iphonesimulator/Dino.app", triple=x86_64, platform_name=(null), add_dependent_modules=1, error=the specified architecture 'x86_64' is not compatible with 'i386-apple-ios' in '/Users/xxxxxxx/Library/Developer/Xcode/DerivedData/Dino-gjuxikhuyokkqufeqmesmgjcxylu/Build/Products/Debug-iphonesimulator/Dino.app/Dino') => SBTarget(0x0)

4)从上面的日志输出中检查目标文件,在我的情况下 -

4) Inspect the target file from the above log output, in my case -


file
/ Users / xxxxxxx / Library / Developer / Xcode / DerivedData / Dino-gjuxikhuyokkqufeqmesmgjcxylu / Build /Products/Debug-iphonesimulator/Dino.app/Dino

file "/Users/xxxxxxx/Library/Developer/Xcode/DerivedData/Dino-gjuxikhuyokkqufeqmesmgjcxylu/Build/Products/Debug-iphonesimulator/Dino.app/Dino"

/ Users / apanagar / Library / Developer / Xcode / DerivedData / Dino-gjuxikhuyokkqufeq mesmgjcxylu / Build / Products / Debug-iphonesimulator / Dino.app / Dino:
Mach-O可执行文件i386

/Users/apanagar/Library/Developer/Xcode/DerivedData/Dino-gjuxikhuyokkqufeqmesmgjcxylu/Build/Products/Debug-iphonesimulator/Dino.app/Dino: Mach-O executable i386

5)所以,就我而言,我的问题是我正在构建的架构。项目的目标体系结构应与日志输出中SBDebugger :: CreateTarget()行的体系结构相匹配。

5) So, In my case my problem was the architectures I was building for. The target architecture for your project should match the one on the SBDebugger::CreateTarget() line in the log output.

Xcode doc指出以下内容。我不得不通过我的嵌套框架并更改一些过时的架构目标 -

Xcode doc's point out the following. I had to go through my nested frameworks and change some outdated architecture targets -


关于64位架构的说明

NOTE ABOUT 64-BIT ARCHITECTURE

应用扩展目标必须在其
架构构建设置中包含arm64架构,否则App Store将拒绝该架构。
当您创建新的应用扩展目标时,Xcode包含此架构及其标准架构
设置。

An app extension target must include the arm64 architecture in its Architectures build settings or it will be rejected by the App Store. Xcode includes this architecture with its "Standard architectures" setting when you create a new app extension target.

如果您的包含应用目标链接到一个嵌入式框架,app
还必须包含arm64架构,否则它将被
App Store拒绝。

If your containing app target links to an embedded framework, the app must also include the arm64 architecture or it will be rejected by the App Store.

有关64的更多信息位开发,请参阅64位转换
可可触摸指南或Cocoa 64位转换指南,取决于目标平台上的

For more information about 64-bit development, see 64-Bit Transition Guide for Cocoa Touch or 64-Bit Transition Guide for Cocoa, depending on your target platform.

https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/ExtensionCreation.html#//apple_ref/doc/uid/TP40014214-CH5-SW1

这篇关于在路径,Xcode 6 GM种子上创建LLDB目标时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆