2

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

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

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

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

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

谢谢!

4

1 回答 1

4

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

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

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

于 2014-10-25T02:02:44.180 回答