openid / openid/AppAuth-iOS

Unable to build module AppAuth

Open
#588 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C
Stars
2k
Forks
867
Avg merge
4d 48m
Merged PRs (30d)
1

Description

We are trying to make use of AppAuth in our iOS project. Using Xcode 11.5, Swift 5.
Adding the framework through Cocoapods works fine. But when importing the module in any class the build will fail.
There are 2 error messages

  • Could not build module 'AppAuth'
    -.../Pods/AppAuth/Source/AppAuth/iOS/OIDExternalUserAgentIOS.h:37:1: Conflicting nullability specifier on return types, 'nullable' conflicts with existing specifier 'nonnull'

Whatever we try, we just can't seem to get around this error.
Any suggestions about a possible solution?
Thank you

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported failure in Pods/AppAuth/Source/AppAuth/iOS/OIDExternalUserAgentIOS.h at line 37, using the Xcode 11.5 and Swift 5 setup described. Reproduce the CocoaPods integration and inspect the conflicting nullability diagnostics when importing AppAuth. Done means the module builds successfully and can be imported in an iOS class.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c, swift
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.