简体   繁体   English

使用不同版本的XCode / iOS SDK构建的库之间是否兼容?

[英]Compatibility between libraries built with different versions of XCode / iOS SDK?

I've moved a project from XCode 4 to XCode 5 and from building against iOS 6 SDK to iOS 7 SDK. 我已经将项目从XCode 4移至XCode 5,并且从针对iOS 6 SDK的构建移至iOS 7 SDK。 One of the libs I use, I have a prebuilt version targeting iOS 4.3 which worked fine in XCode 4. 我使用的库之一是针对iOS 4.3的预构建版本,该版本在XCode 4中运行良好。

In XCode 5, my app now runs fine on the iOS6 simulator, but I get a crash inside the library every time with iOS7 simulator. 在XCode 5中,我的应用程序现在可以在iOS6模拟器上正常运行,但是每次使用iOS7模拟器时,库内都会崩溃。 I'm looking to understand why this is and how different library builds are[n't] compatible with each other... the library is not using any iOS functionality as it's a cross-platform C++ lib, so why it would crash in one simulator but not the other is a bit perplexing. 我想了解这是为什么,以及不同的库构建之间如何不兼容……该库未使用任何iOS功能,因为它是跨平台的C ++库,所以为什么会崩溃一个模拟器而不是另一个模拟器有点困惑。

it's a cross-platform C++ lib 这是一个跨平台的C ++库

This might be your problem. 这可能是您的问题。 C++ does not have a stable ABI, so libraries should always be built using the compiler that builds the executable they're linked against. C ++没有稳定的ABI,因此应该始终使用编译器来构建库,该编译器将生成与其链接的可执行文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xcode iOS SDK兼容性 - Xcode iOS SDK compatibility 不同版本的XCode兼容性问题 - XCode Compatibility Issue with different versions Xcode应用商店提交问题“必须使用Xcode 5和iOS 7 SDK的公共(GM)版本构建” - Xcode appstore submission issue “must be built with public (GM) versions of Xcode 5 and iOS 7 SDK” 必须使用Xcode 6或更高版本的公共(GM)版本,OS X和iOS SDK构建新的应用程序和应用程序更新 - New apps and app updates must be built with the public (GM) versions of Xcode 6 or later, OS X, and iOS SDK 不同iOS版本上的NSKeyedArchiver / NSKeyedUnarchiver兼容性 - NSKeyedArchiver/NSKeyedUnarchiver compatibility on different iOS versions 在Xcode 9上构建的向后兼容性可在iPad版本iOS 9.0上运行 - Backwards compatibility built on Xcode 9 to run on iPad version iOS 9.0 错误:提交给App Store的新应用和应用更新必须使用Xcode 6或更高版本的公共(GM)版本以及iOS 8 SDK构建 - Error: New apps and app updates submitted to the App Store must be built with public (GM) versions of Xcode 6 or higher and iOS 8 SDK XCode iOs构建-混合OS版本和SDK版本的重要性? - XCode iOs Builds - Significance of mixing OS versions and SDK versions? ios版本兼容性 - ios versions compatibility iOS如何运行使用早期SDK版本构建的应用程序? - How can iOS run apps built with previous SDK versions?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM