Skip to content

local_auth header not found when deploying to iOS Device #15532

Closed

Description

@rodydavis

Steps to Reproduce

  1. In Visual Studio Code add the plugin "local_auth: "^0.2.0"" to pod spec.

screen shot 2018-03-14 at 3 52 45 pm

  1. Get Flutter Packages
  2. Select iOS Device as Target
  3. Press Run in Visual Studio Code / Debug Screen

screen shot 2018-03-14 at 3 54 29 pm

  1. Open Workspace in Xcode and Build and Run

screen shot 2018-03-14 at 3 49 33 pm screen shot 2018-03-14 at 3 39 41 pm

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)

• No issues found!
exit code 0

For more information about diagnosing and reporting Flutter bugs, please see https://flutter.io/bug-reports/.

Activity

  1. added
    p: toolingAffects the flutter_plugin_tools package
    on Mar 14, 2018
  2. rodydavis commented on Mar 26, 2018

    @rodydavis
    ContributorAuthor

    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

    screen shot 2018-03-26 at 9 16 12 am

    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.

  3. nathansbird commented on Mar 26, 2018

    @nathansbird

    Pretty sure this has been fixed in the Master channel. Are you on it?

  4. rodydavis commented on Mar 26, 2018

    @rodydavis
    ContributorAuthor

    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.

  5. nathansbird commented on Mar 26, 2018

    @nathansbird

    Could this be of any help?

  6. rodydavis commented on Mar 26, 2018

    @rodydavis
    ContributorAuthor

    Worked perfect! Thanks for the help.

  7. nathansbird commented on Mar 26, 2018

    @nathansbird

    Awesome! I'm glad you were able to fix it!

  8. rodydavis commented on Mar 26, 2018

    @rodydavis
    ContributorAuthor

    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

  9. itchyfingertips commented on Mar 26, 2018

    @itchyfingertips

    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:

    1. flutter create -i swift myapp
      add this package:
    2. 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

  10. github-actions commented on Sep 3, 2021

    @github-actions

    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.

  11. locked as resolved and limited conversation to collaborators on Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    p: toolingAffects the flutter_plugin_tools package

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions