Ios :: dyld: Symbol not found: _OBJC_CLASS _ $ _ UIAlertAction

I have an app that works fine with iOS sdk 8.3 and Xcode 6. but when I check backward compatibility with iOS sdks 7.1 and 7.1 simulator it fails.

Application crash with the following error

dyld: Symbol not found: _OBJC_CLASS_$_UIAlertAction
Referenced from: /Users/apogaeis/Library/Developer/CoreSimulator/Devices/F48B2D65-9EE8-4737-A0CE-2882D105C6C9/data/Applications/25B9DCDE-4BC6-4568-8EBE-3474FE559CBC/AppName.app/AppName
Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/UIKit.framework/UIKit
in /Users/apogaeis/Library/Developer/CoreSimulator/Devices/F48B2D65-9EE8-4737-A0CE-2882D105C6C9/data/Applications/25B9DCDE-4BC6-4568-8EBE-3474FE559CBC/AppName.app/AppName

      

Please suggest a solution to the problem.

How can I get it to work for all iOS versions?

thank

+3


source to share


1 answer


In my case the UIKit.Framework should have been marked as optional and not required, now my app works fine.



+7


source







All Articles