You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
local_auth header not found when deploying to iOS Device #15532
In Visual Studio Code add the plugin "local_auth: "^0.2.0"" to pod spec.
Get Flutter Packages
Select iOS Device as Target
Press Run in Visual Studio Code / Debug Screen
Open Workspace in Xcode and Build and Run
Logs
Run your application with flutter run and attach all the log output.
Run flutter analyze and attach any output of that command also.
Flutter Doctor
[flutter] flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.13.3 17D102, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
[✓] Android Studio (version 3.0)
[✓] VS Code (version 1.21.0)
[✓] Connected devices (3 available)
"@theEpicality I found a workaround if you are still having issues.
The problem is that the .h files are missing from the "headers" directory in the iOS files. I looked up the missing .h files from the github repo and manually added all the missing ones. Built and it ran just fine! here's a screenshot of where I put mine
In the screenshot provided, the project previously only had the "google_sign_in-umbrella.h" file in it. I simply added "GoogleSignInPlugin.h" from github, as well as the .h files for auth, database, storage, core, and analytics into their respective directories.
Hope that helps!"
Not sure but I believe it is the way Flutter is generating the headers for the iOS Target.
Thats the channel I have been using, I have upgraded flutter and continued to test. It works when I target Android but on IOS any package I add it does not find the Header when I go to build.
What i have been noticed is that if i create flutter project objc for iOS everything works fine, but if i create project with swift on iOS (flutter create -i swift myapp) then it breaks and I get this error.
You can easily try this by creating new project:
flutter create -i swift myapp
add this package:
flutter_facebook_login: 1.1.0
Add this to podfile:
3)target.headers_build_phase.files.each do |file|
file.settings = { 'ATTRIBUTES' => ['Public'] }
end
and run this command
4) flutter build ios
it will crash saying:
/Users/zigmarsdzerve/code/light_tale/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKCoreKit+Internal.h:24:9: fatal error: 'BridgeAPI/FBSDKBridgeAPIProtocol.h' file not found
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
rodydavis commentedon Mar 26, 2018
I believe the issue #15168 is related.
@abogdanovich1 May have the answer:
"@theEpicality I found a workaround if you are still having issues.
The problem is that the .h files are missing from the "headers" directory in the iOS files. I looked up the missing .h files from the github repo and manually added all the missing ones. Built and it ran just fine! here's a screenshot of where I put mine
In the screenshot provided, the project previously only had the "google_sign_in-umbrella.h" file in it. I simply added "GoogleSignInPlugin.h" from github, as well as the .h files for auth, database, storage, core, and analytics into their respective directories.
Hope that helps!"
Not sure but I believe it is the way Flutter is generating the headers for the iOS Target.
nathansbird commentedon Mar 26, 2018
Pretty sure this has been fixed in the Master channel. Are you on it?
rodydavis commentedon Mar 26, 2018
Thats the channel I have been using, I have upgraded flutter and continued to test. It works when I target Android but on IOS any package I add it does not find the Header when I go to build.
nathansbird commentedon Mar 26, 2018
Could this be of any help?
rodydavis commentedon Mar 26, 2018
Worked perfect! Thanks for the help.
nathansbird commentedon Mar 26, 2018
Awesome! I'm glad you were able to fix it!
rodydavis commentedon Mar 26, 2018
For Future Reference:
workaround for CocoaPods/CocoaPods#7463
target.headers_build_phase.files.each do |file|
file.settings = { 'ATTRIBUTES' => ['Public'] }
end
This goes at the end of the Pod file under enable BitCode: https://stackoverflow.com/a/49274856/7303311
itchyfingertips commentedon Mar 26, 2018
No, that does not fix it for me!
What i have been noticed is that if i create flutter project objc for iOS everything works fine, but if i create project with swift on iOS (flutter create -i swift myapp) then it breaks and I get this error.
You can easily try this by creating new project:
add this package:
Add this to podfile:
3)target.headers_build_phase.files.each do |file|
file.settings = { 'ATTRIBUTES' => ['Public'] }
end
and run this command
4) flutter build ios
it will crash saying:
/Users/zigmarsdzerve/code/light_tale/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKCoreKit+Internal.h:24:9: fatal error: 'BridgeAPI/FBSDKBridgeAPIProtocol.h' file not found
github-actions commentedon Sep 3, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.