Need help: "Wrong architecture" calls the app on crash on launch in iOS 7 but works fine in iOS 8

My app crashes when I run it in iOS 7.1 but works fine in iOS 8.1

The error I am getting is this:

dyld: Library not loaded: /System/Library/Frameworks/AVKit.framework/AVKit Link from: MY APP Reason: No matching image found. Found: /System/Library/Frameworks/AVKit.framework/AVKit: mach-o but wrong architecture (lldb)

I also noticed a similar error but with the mentioned UIKit instead of AVKit a few changes ago.

Does anyone know how to solve this? I am using Xcode 6.1.

I really don't want to miss out on iOS 7 users by releasing only for iOS 8. Thanks!

+3


source to share


2 answers


The app crashes because the AVKit framework is only present in iOS 8, so when you try to compile an app for iOS 7, the app crashes because the iOS 7 SDK doesn't include the AVKit framework.



+5


source


You can do one thing, set the frame as optional. There is no need to remove the framework.enter image description here



+4


source







All Articles