expo: AppAuth semantic issue breaking build (Xcode 9)

Building an ExpoKit ejected project in Xcode 9 (High Sierra) Throws a semantic error within AppAuth

This is preventing the app from building. Screenshot below.

I found this issue thread within AppAuth which was resolved 17 days ago, might just need a version bump somewhere: https://github.com/openid/AppAuth-iOS/issues/120

ExpoKit pod tag: ios/1.20.5

screen shot 2017-10-02 at 3 01 09 pm

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 3
  • Comments: 16 (9 by maintainers)

Most upvoted comments

We think we can probably fix it in next ExpoKit release by forcing CocoaPods to update the target SDK version in a postinstall. Still not sure why this issue blocks the build for some people and not for others.

Reopening just to track this until I land a fix.

If you have an existing detached project, you’ll have to fix this manually by adding this to your Podfile’s postinstall loop:

    if target.pod_name == 'AppAuth'
      target.native_target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
      end
    end

This is currently the recommended solution by cocoapods, they won’t configure it automatically.

I’ll make it so fresh ExpoKit projects already have this hook in their Podfile when it’s created.