Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Podfile for both ios8 and ios9

What do I have to write on Podfile to launch my application on both ios8, ios9 devices?

In the Podfile, if I write

platform :ios, '9.0'

It will crash when I launch the application on ios8 device:

dyld: Symbol not found: ___NSArray0__
  Referenced from: /private/var/mobile/Containers/Bundle/Application/CFE-45CC-429B-88E7-52E123/MYAPP.app/MYAPP
  Expected in: /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 in /private/var/mobile/Containers/Bundle/Application/CAFE-45CC-429B-88E7-52212593/MYAPP.app/MYAPP

Note: I am using XCode7.1 Beta, Objective-C, CocoaPod 0.38.0

like image 439
chipbk10 Avatar asked Mar 14 '23 15:03

chipbk10


1 Answers

The platform line in your Podfile should be set to the lowest supported version. In otherwords use this:

platform :ios, '8.4'
like image 198
Sandy Chapman Avatar answered Mar 29 '23 02:03

Sandy Chapman