gpt4 book ai didi

ios - ld : building for iOS Simulator, 但链接到为 MacOSX 文件构建的 dylib

转载 作者:可可西里 更新时间:2023-11-01 04:52:02 24 4
gpt4 key购买 nike

所以我遇到了一些问题,Apple 在过去 3 次拒绝了我的应用程序。他们总是给我留下这个错误。

Incident Identifier: 0F8AC4C8-57A6-4E1E-BE2B-0A93E6A85564
CrashReporter Key: 03e6d04a9f8fcf7989c751d0befe3b50ff6720c8
Hardware Model: xxx
Process: Unoffical Statitics [1012]
Path: /var/mobile/Applications/0A0DD25F-0320-4D79-BB3D-F69A9823B82C/Unoffical Statitics.app/Unoffical Statitics
Identifier: com.APPSTARME.ManUtd
Version: 1.0 (1.0)
Code Type: ARM (Native)
Parent Process: launchd [1]

Date/Time: 2014-02-12 10:44:08.759 -0800
OS Version: iOS 7.0.4 (11B554a)
Report Version: 104

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000000e7ffdefe
Triggered by Thread: 0

Dyld Error Message:
Library not loaded: /Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit
Referenced from: /var/mobile/Applications/0A0DD25F-0320-4D79-BB3D-F69A9823B82C/Unoffical Statitics.app/Unoffical Statitics
Reason: image not found
Dyld Version: 324

Binary Images:
0x2befd000 - 0x2bf1d77a dyld armv7s <fd7cb81f388f39cbac4f71338b669c24> /usr/lib/dyld
0x3ae07000 - 0x3aebafff libxml2.2.dylib armv7s <810acee8bebe317492118d752643bde3> /usr/lib/libxml2.2.dylib

所以我一直在尝试解决这个问题,但一点运气都没有,但是我只是删除了我所有的框架搜索路径(Xcode 现在将其设置为默认值 $(DEVELOPER_FRAMEWORKS_DIR))

但是,当我现在尝试运行应用程序时,我收到了这个错误

ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode51-DP2.app/Contents/Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

在您的 client.app 上运行此命令:

export PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xct‌oolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:$PATH

就您的 Xcode 而言,名称是 Xocde.app。

关于ios - ld : building for iOS Simulator, 但链接到为 MacOSX 文件构建的 dylib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21791050/

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