gpt4 book ai didi

ios - 在路径创建 LLDB 目标时出错,Xcode 6 GM 种子

转载 作者:可可西里 更新时间:2023-11-01 04:51:36 28 4
gpt4 key购买 nike

每当我在 Xcode 6 GM Seed 中构建时,我都会收到此错误。这似乎让我的应用程序变得异常缓慢。这到底是什么意思,我该如何解决?

我有以下错误:

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

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

最佳答案

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

有用的步骤如下——

1) 创建或修改您的 ~/.lldbinit 并向其添加 log enable -f/tmp/lldb-api.txt lldb api

2) 重新运行调试器 session (不需要重新启动 Xcode 或任何东西)

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

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) 从上面的日志输出中检查目标文件,在我的例子中 -

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

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

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

Xcode 文档指出以下内容。我必须检查我的嵌套框架并更改一些过时的架构目标 -

NOTE ABOUT 64-BIT ARCHITECTURE

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.

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.

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

关于ios - 在路径创建 LLDB 目标时出错,Xcode 6 GM 种子,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25761447/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com