gpt4 book ai didi

ios - AppCode运行iOS模拟器 "Library not loaded"

转载 作者:行者123 更新时间:2023-11-29 02:24:09 25 4
gpt4 key购买 nike

我正在尝试 AppCode 3.1。我有一个带有 XCode 6.1.1 的 iOS 8.1 项目和一个链接框架。该框架是 SwifteriOS.framework 使用 Carthage ( https://github.com/Carthage/Carthage ) 构建的,如下所示:

github "mattdonnelly/Swifter" == 1.4.1

XCode 中的一切工作正常,但是当我尝试使用 AppCode 在模拟器中启动项目时,控制台给我:

/Users/daiwei/Library/Caches/appCode31/DerivedData/Avetuc-36d98cf8/Build/Products/Debug-iphonesimulator/Avetuc.app
Simulator session started with process 17951
Debugger attached to process 17951
dyld: Library not loaded: @rpath/SwifteriOS.framework/SwifteriOS
Referenced from: /Users/daiwei/Library/Developer/CoreSimulator/Devices/C325D5F4-DDCF-41C5-9F7D-6CC17F175DA4/data/Containers/Bundle/Application/AB30E0FB-7A0F-4914-B6EB-B02B26CB5741/Avetuc.app/Avetuc
Reason: image not found
Exception: EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0))

我可以看到模拟器启动并显示应用程序的启动屏幕。但是应用程序只是崩溃并显示上述消息。

最佳答案

找不到图像通常是指框架的二进制文件未加载,通常是因为它实际上从未复制到应用程序的二进制文件中。

可能是 Xcode 正在为您正确复制框架,而 AppCode 没有执行此操作的说明。请务必遵循运行脚本阶段说明 ( https://github.com/Carthage/Carthage#if-youre-building-for-ios ),以便您确定框架会完成任务。此外,确保该库也显示在“链接的框架和库”中。

关于ios - AppCode运行iOS模拟器 "Library not loaded",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27755696/

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