question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AppAuth.h file not found

See original GitHub issue

Issue

The AppAuth.h file not found error occurs specifically when running the Carthage setup (works fine with Pods)

Environment

  • Platform that you’re experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • Are you using Expo, e.g. ExpoKit?
    • No
    • Yes, I’ve not ejected
    • Yes, but I have ejected to ExpoKit
    • Yes, but I have ejected to vanilla React Native

Proposed Fix

For me, when this build error occurs it is not in my project but the RNAppAuth project. I can fix this by going and adding $(SRCROOT)/../../../ios/Carthage/Build/iOS/AppAuth.framework as a recursive header search path to the project.

If you modify the line found here: https://github.com/FormidableLabs/react-native-app-auth/blob/master/ios/RNAppAuth.xcodeproj/project.pbxproj#L211 to include this, then it works for me (albeit with a bug in the AppAuth-iOS, but that is a separate issue)

HEADER_SEARCH_PATHS = (
					"$(inherited)",
					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
					"$(SRCROOT)/../../../React/**",
					"$(SRCROOT)/../../react-native/React/**",
					"$(SRCROOT)/../../../ios/Pods/AppAuth/**",
					"$(SRCROOT)/../../../ios/Pods/Headers/**",
					"$(SRCROOT)/../../../ios/Carthage/Build/iOS/AppAuth.framework/**"
				);

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
moddatherrashedcommented, Apr 16, 2019

hey there, i am struggling with this issue ! @erichulser did you solve it ?

1reaction
powersjcbcommented, Jun 12, 2019

I’m able to reproduce this bug on 4.4.0 and 4.0.0 on react-native == 0.59.0 while using an installation with react-native link.

Oops, turns out I had not correctly finished the setup instructions. Got this working today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RNAppAuth.m: 'AppAuth/AppAuth.h' file not found #134 - GitHub
I've just integrated RNAppAuth v2.6.1 and AppAuth-iOS v0.93.0 (AppAuth-iOS linked through cocoapods), and I get this error.
Read more >
'AppAuth/AppAuth.h' file not found (#592) · Issues - GitLab
I am unable to build the project. I get 'AppAuth/AppAuth.h' file not found. I downloaded the repo, installed the PODs and everything seemed ......
Read more >
'AppAuth/AppAuth.h' file not found for m1 chipset
We do not currently allow content pasted from ChatGPT on Stack Overflow; read our policy here. 'AppAuth/AppAuth.h' file not found for m1 chipset....
Read more >
AppAuth on CocoaPods.org
AppAuth for iOS and macOS is a client SDK for communicating with OAuth 2.0 and OpenID Connect providers.
Read more >
failed to emit precompiled header for bridging header m1
I found out that I accidentally opened the ProjectName.xcodeproj file rather ... failed to emit precompile header and 'AppAuth/AppAuth.h' file not found ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found