AppAuth.h file not found
See original GitHub issueIssue
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:
- Created 5 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hey there, i am struggling with this issue ! @erichulser did you solve it ?
I’m able to reproduce this bug on
4.4.0
and4.0.0
onreact-native == 0.59.0
while using an installation withreact-native link
.Oops, turns out I had not correctly finished the setup instructions. Got this working today.