admin管理员组

文章数量:1287790

I am trying to run my app in a macbook with M4 processor and I get this error.

Swift Compiler Error (Xcode): 'Flutter/Flutter.h' file not found
/Users/danieleyny/.pub-cache/hosted/pub.dev/smart_auth-2.0.0/ios/Classes/SmartAuthPlugin.h:0:8
    
    
Swift Compiler Error (Xcode): Could not build Objective-C module 'smart_auth'

Encountered error while archiving for device. I tried removing the ios folder, pasting the old Runner folder, re-inserting the googleinfo.plist file, but nothing worked. This project works fine in my Windows machine.

I am trying to run my app in a macbook with M4 processor and I get this error.

Swift Compiler Error (Xcode): 'Flutter/Flutter.h' file not found
/Users/danieleyny/.pub-cache/hosted/pub.dev/smart_auth-2.0.0/ios/Classes/SmartAuthPlugin.h:0:8
    
    
Swift Compiler Error (Xcode): Could not build Objective-C module 'smart_auth'

Encountered error while archiving for device. I tried removing the ios folder, pasting the old Runner folder, re-inserting the googleinfo.plist file, but nothing worked. This project works fine in my Windows machine.

Share Improve this question edited Feb 23 at 4:57 Vy Do 52.7k69 gold badges254 silver badges384 bronze badges asked Feb 23 at 1:00 Gentjan ShtjefniGentjan Shtjefni 138 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

This doesn't work because this package smart_auth is simply not iOS compatible.

Only the Android platform is indicated on the doc: https://pub.dev/packages/smart_auth

本文标签: iosSwift Compiler Error (Xcode) quotFlutterflutterhquot file not foundStack Overflow