78 | | By default, PJSIP will be built for the latest iOS version supported by the iOS SDK. If you want to support older iOS versions, you need to specify the minimum supported version when running {{{configure-iphone}}}, such as: |
79 | | {{{ |
80 | | CFLAGS="-miphoneos-version-min=6.0" LDFLAGS="-miphoneos-version-min=6.0" ./configure-iphone |
81 | | }}} |
82 | | |
83 | | If you don't set the minimum iOS version, you may encounter linker warning in your XCode app, which may lead to crashes when running on older iOS versions: |
84 | | {{{ |
85 | | ld: warning: object file (...) was built for newer iOS version (10.0) than being linked (6.0) |
| 78 | If you want to specify the minimum supported iOS version, you can set {{{MIN_IOS}}} environment variable before running {{{{configure-iphone}}}, for example: |
| 79 | {{{ |
| 80 | export MIN_IOS="-miphoneos-version-min=8.0" |
| 81 | }}} |
| 82 | |
| 83 | The default setting is iOS 7.0. If you don't want to specify this flag, you can set {{{MIN_IOS}}} to a single space instead ({{{export MIN_IOS=" "}}}) Note that if you don't set the minimum iOS version, you may encounter linker warning in your XCode app, which may lead to crashes when running on older iOS versions: |
| 84 | {{{ |
| 85 | ld: warning: object file (...) was built for newer iOS version (10.0) than being linked (7.0) |