ios Xcode - 创建 LLDB 目标时出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25088252/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode - Error creating LLDB target
提问by Jake
I'm getting this error whenever I build in XCode 6 beta 4. It seems to be making my app insanely slow.
每当我在 XCode 6 beta 4 中构建时,我都会收到此错误。这似乎使我的应用程序异常缓慢。
Warning:Error creating LLDB target at path '/***/***/***/***.app'- using an empty LLDB target which can cause slow memory reads from remote devices.
警告:在路径“/***/***/***/***.app”创建 LLDB 目标时出错 - 使用空的 LLDB 目标会导致从远程设备读取内存缓慢。
What exactly does this mean and how do I fix it?
Thanks in advance!
这究竟是什么意思,我该如何解决?
提前致谢!
回答by khanhlvg
Did you use Architectures=$(ARCHS_STANDARD_32_BIT)
and run your app on a 64 bit device? (iPhone 5S or iPhone 5S simulator)
您是否Architectures=$(ARCHS_STANDARD_32_BIT)
在 64 位设备上使用和运行您的应用程序?(iPhone 5S 或 iPhone 5S 模拟器)
Apple seems to be stricter with apps which don't support 64bit. So if there is no specific reason, I think it's better to include arm64 in your build architecture
苹果似乎对不支持 64 位的应用程序更严格。所以如果没有具体原因,我认为最好在你的构建架构中包含 arm64
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.
关于 64 位架构的注意事项
应用程序扩展目标必须在其架构构建设置中包含 arm64 架构,否则将被 App Store 拒绝。当您创建新的应用程序扩展目标时,Xcode 会将此架构及其“标准架构”设置包含在内。
如果您的包含应用程序目标链接到嵌入式框架,则该应用程序还必须包含 arm64 架构,否则将被 App Store 拒绝。
有关 64 位开发的更多信息,请参阅 Cocoa Touch 的 64 位过渡指南或 Cocoa 的 64 位过渡指南,具体取决于您的目标平台。
来源:https: //developer.apple.com/library/content/documentation/General/Conceptual/ExtensibilityPG/ExtensionCreation.html#//apple_ref/doc/uid/TP40014214-CH5-SW1
回答by Jayprakash Dubey
This warning is solved by changing Build Settings :
通过更改 Build Settings 可以解决此警告:
- Select Project -> Build Settings
Change 'Architectures' to 'Standard architectures (armv7, arm64) - $(ARCHS_STANDARD)'
This will prompt an alert stating iOS 5.1.1 and above are supported. Click 'Change Deployment Target to 5.1.1'
- 选择项目 -> 构建设置
将“架构”更改为“标准架构(armv7、arm64)- $(ARCHS_STANDARD)”
这将提示一个警报,说明支持 iOS 5.1.1 及更高版本。单击“将部署目标更改为 5.1.1”
- Repeat steps for Target (if not changed automatically)
- 对 Target 重复步骤(如果未自动更改)
Also, this is preferred build setting since Apple is forcing developers to build apps on 64 but architecture. Apple document Link
此外,这是首选的构建设置,因为 Apple 迫使开发人员在 64 位架构上构建应用程序。苹果文档链接
回答by wilforeal
Double Check Build Settings => Valid Architectures for both Project and Target.
仔细检查构建设置 => 项目和目标的有效架构。
Mine used to say: arm64 armv7 i386(The one causing the error was i386)
我的曾经说:arm64 armv7 i386(导致错误的是i386)
I replaced it to : arm64 armv7
我将其替换为: arm64 armv7
I hope that helps.
我希望这有帮助。
回答by MB_iOSDeveloper
回答by PeterPurple
My "Architectures" included arm64 but I had to add arm64 to "Valid Architectures" in the target.
我的“架构”包括 arm64,但我必须将 arm64 添加到目标中的“有效架构”。