ld:为iOS模拟器构建,但是为针对架构i386的MacOSX文件“RemObjectsSDK.framework / RemObjectsSDK”构建的dylib进行链接

时间:2014-10-25 00:17:20

标签: xcode6 remobjects ios8.1 dataabstract

我是iOS开发新手,我最近更新为 OS X Yosemite Xcode 6 ,所以我尝试将我的应用更新为 iOS 8.1

问题是我有一个项目在 iOS 7.1 上运行,它是在 Xcode 5.1 OS X 10.8.5 上制作的 Xcode的RemObjects数据摘要 - 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)

我已经尝试使用 RemObjects Data Abstract for Cocoa - 8.1.85.1143 - 试用并且错误仍然相同,我能做些什么?

ps:由于代码弃用,我在更新代码后发生了这一切。

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

谢谢!

1 个答案:

答案 0 :(得分:4)

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

在旧版本的iOS上,您会遇到运行时错误(错误的值或崩溃)。在iOS 8.0上,这成为链接时错误。

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