ld:为 iOS 模拟器构建,但链接到为 MacOSX 构建的 dylib 文件'RemObjectsSDK.framework/RemObjectsSDK'架构 i386



我是iOS开发的新手,最近更新到了OS X YosemiteXcode 6,所以我尝试将我的应用程序更新到iOS 8.1

问题是,我有一个项目在iOS 7.1上运行,它是在Xcode 5.1OS X 10.8.5RemObjects数据摘要Xcode-7.0.63.1055上制作的

我更新了应用程序以在iOS 8.1中运行,当我尝试编译我的项目时,出现以下错误:

Ld /Users/ingenieria/Library/Developer/Xcode/DerivedData/IC4-bjbysgznhpelujdvlqbfkmfrckyx/Build/Products/Debug-iphonesimulator/IC4.app/IC4 normal i386
cd /Users/ingenieria/Desktop/04/OMEGA/iSIREPolProyect
export IPHONEOS_DEPLOYMENT_TARGET=8.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -L/Users/ingenieria/Library/Developer/Xcode/DerivedData/IC4-bjbysgznhpelujdvlqbfkmfrckyx/Build/Products/Debug-iphonesimulator -L/Developer/RemObjects Software/Bin/iOS/Debug-iphonesimulator -F/Users/ingenieria/Library/Developer/Xcode/DerivedData/IC4-bjbysgznhpelujdvlqbfkmfrckyx/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Users/ingenieria/Desktop/04/OMEGA/iSIREPolProyect -F/Developer/RemObjects Software/Bin/Debug -filelist /Users/ingenieria/Library/Developer/Xcode/DerivedData/IC4-bjbysgznhpelujdvlqbfkmfrckyx/Build/Intermediates/IC4.build/Debug-iphonesimulator/IC4.build/Objects-normal/i386/IC4.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -all_load -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.1 -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/ingenieria/Library/Developer/Xcode/DerivedData/IC4-bjbysgznhpelujdvlqbfkmfrckyx/Build/Intermediates/IC4.build/Debug-iphonesimulator/IC4.build/IC4.app.xcent -framework DataAbstract -framework RemObjectsSDK -framework MessageUI -framework SystemConfiguration -framework StoreKit -framework Social -framework Parse -framework Security -framework QuartzCore -framework OpenGLES -framework MobileCoreServices -framework CoreVideo -framework CoreMedia -framework CoreLocation -framework CoreGraphics -framework CoreAudio -framework CFNetwork -framework AVFoundation -framework ShinobiGrids -framework AudioToolbox -framework AdSupport -framework Accounts -framework UIKit -framework Foundation -lz.1.1.3 -lz.1.2.5 -lz.1 -lz -lsqlite3.0 -lsqlite3 -liconv.2.4.0 -liconv.2 -liconv -Xlinker -dependency_info -Xlinker /Users/ingenieria/Library/Developer/Xcode/DerivedData/IC4-bjbysgznhpelujdvlqbfkmfrckyx/Build/Intermediates/IC4.build/Debug-iphonesimulator/IC4.build/Objects-normal/i386/IC4_dependency_info.dat -o /Users/ingenieria/Library/Developer/Xcode/DerivedData/IC4-bjbysgznhpelujdvlqbfkmfrckyx/Build/Products/Debug-iphonesimulator/IC4.app/IC4
ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Developer/RemObjects Software/Bin/Debug/RemObjectsSDK.framework/RemObjectsSDK' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我已经在Cocoa的RemObjects数据摘要-8.1.85.1143-试用版中尝试过了,但错误仍然存在,你认为我能做什么?

ps:这一切都发生在我更新代码之后,因为不推荐使用代码

编辑:我已经清理和构建了很多次项目,错误仍然出现

谢谢!

在构建项目时,您正试图链接到/Developer/RemObjects Software/Bin/Debug/RemObjectsSDK.framework(不管是什么)。你的项目是一个iOS模拟器应用程序,该框架是一个OS X框架。您不能在iOS模拟器应用程序中使用OS X二进制文件,因为它们不兼容。

在旧版本的iOS上,您会遇到运行时错误(值不正确或崩溃)。在iOS 8.0上,这变成了一个链接时间错误。

您需要为iOS模拟器构建一个版本的RemObjectsSDK.framework。

相关内容

  • 没有找到相关文章

最新更新