gpt4 book ai didi

xcode - 在 Xcode 之外运行 cocoa 应用程序

转载 作者:行者123 更新时间:2023-12-03 16:58:34 24 4
gpt4 key购买 nike

当我在 Xcode 中运行我的 cocoa 应用程序时,它工作正常。但我要去 .app 文件所在的位置并从那里运行它,出现此错误:

Process:         QBLoader [4571]
Path: /Users/USER/Library/Developer/Xcode/DerivedData/QBLoader-egxdvwlbzueazygfdbjqcxtgyvqz/Build/Products/Debug/QBLoader.app/Contents/MacOS/QBLoader
Identifier: com.fsm.QBLoader
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: launchd [210]

Date/Time: 2012-05-25 09:25:31.121 +0200
OS Version: Mac OS X 10.7.3 (11D50)
Report Version: 9

Interval Since Last Report: 62057 sec
Crashes Since Last Report: 10
Per-App Interval Since Last Report: 20 sec
Per-App Crashes Since Last Report: 10
Anonymous UUID: 5DEC6815-69C3-48FA-A3C4-3EEBC31CC1B6

Crashed Thread: 0

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
Library not loaded: /Library/Frameworks/SBJson.framework/Versions/A/SBJson
Referenced from: /Users/USER/Library/Developer/Xcode/DerivedData/QBLoader-egxdvwlbzueazygfdbjqcxtgyvqz/Build/Products/Debug/QBLoader.app/Contents/MacOS/QBLoader
Reason: image not found

最佳答案

这对我有用。我将 SBJson 目标的“安装目录”更改为:“@executable_path/../Frameworks”。现在可以在 Xcode 之外运行该应用程序了。

关于xcode - 在 Xcode 之外运行 cocoa 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10750381/

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