菜鸟教程小白 发表于 2022-12-13 13:23:51

objective-c - ld : framework not found GData


                                            <p><p>当我尝试构建应用程序时,为什么 Xcode 说它找不到我的 GData 框架? GData.framework 目录与其他 .frameworks(CoreData 等)位于同一目录(在 HD 和 Project navigator 中),并且它也添加到“Linked Frameworks and Libraries”面板中。</p>

<p>这是日志输出:</p>

<pre><code>dyld: Library not loaded: @loader_path/../Frameworks/GData.framework/Versions/A/GData
Referenced from: /Users/zak/Library/Application Support/iPhone Simulator/5.1/Applications/897A560D-3AD5-42BE-958B-84DEA45A8F0E/MyApp.app/MyApp
Reason: image not found
</code></pre>

<p>这是完整的问题报告:</p>

<pre><code>Ld /Users/zak/Library/Developer/Xcode/DerivedData/MyApp-fcvdbuanprmqvjafgwsuxlokvpsd/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp normal i386
cd /Users/zak/Dropbox/xcodeProjects/MyApp
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH &#34;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin&#34;
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/zak/Library/Developer/Xcode/DerivedData/MyApp-fcvdbuanprmqvjafgwsuxlokvpsd/Build/Products/Debug-iphonesimulator -F/Users/zak/Library/Developer/Xcode/DerivedData/MyApp-fcvdbuanprmqvjafgwsuxlokvpsd/Build/Products/Debug-iphonesimulator -F/Users/zak/Dropbox/xcodeProjects/MyApp/.. -filelist /Users/zak/Library/Developer/Xcode/DerivedData/MyApp-fcvdbuanprmqvjafgwsuxlokvpsd/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/i386/MyApp.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 -framework CoreData -framework UIKit -framework GData -framework Foundation -framework CoreGraphics -o /Users/zak/Library/Developer/Xcode/DerivedData/MyApp-fcvdbuanprmqvjafgwsuxlokvpsd/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp

ld: framework not found GData
clang: error: linker command failed with exit code 1 (use -v to see invocation)
</code></pre>

<p><strong>编辑</strong>得到它的工作,但现在我得到一个 GDataXMLNode.h 文件未找到错误</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>答案是您不能将 GData 框架添加到 iOS 项目中,因为它只是为 Mac OSX 设计的。您必须使用 GData 作为链接库。</p></p>
                                   
                                                <p style="font-size: 20px;">关于objective-c - ld : framework not found GData,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/10275740/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/10275740/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: objective-c - ld : framework not found GData