I have been trying to get my project to run on IOS, however the app can never compile due to this issue. I am using paystack in my app, and the issue seems to be coming from trying to import "Flutter/Flutter.h" in the "FlutterPaystackPlugin.h" file
I'm running Xcode 13.2, as this is the latest version of Xcode that my Mac allows me to run.
I've tried all the fixes relating to this issue, such as reinstalling the pod file and cocoa pods, updating all my packages etc. Nothing seems to work. I suspect that this might get resolved if I update the the latest version of Xcode on a newer mac, but I'm not sure.
Any guidance would be much appreciated, thanks!
The terminal displays the following:
Xcode's output:
↳
Writing result bundle at path:
/var/folders/kh/_1d27hws6b9_sn5cffmtwqyw0000gn/T/flutter_tools.2uoDII/flutter_ios_build_temp_dirNxtCwa/temporary_xcresult_bundle
/Users/Alex/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.1/ios/Classes/messages.g.m:7:9: fatal error:
'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/firebase_cor
e/firebase_core.framework'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/firebase_dat
abase/firebase_database.framework'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/firebase_aut
h/firebase_auth.framework'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Pods_Runner.
framework'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/awesome_noti
fications/awesome_notifications.framework'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/GoogleUtilit
ies/GoogleUtilities.framework'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/FirebaseData
base/FirebaseDatabase.framework'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/FirebaseCore
Internal/FirebaseCoreInternal.framework'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/FirebaseCore
/FirebaseCore.framework'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/FirebaseAuth
/FirebaseAuth.framework'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.app'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
module/Project/x86_64-apple-ios-simulator.swiftsourceinfo'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
module/Project/x86_64.swiftsourceinfo'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
module/x86_64-apple-ios-simulator.swiftdoc'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
module/x86_64-apple-ios-simulator.swiftmodule'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
module/x86_64.swiftdoc'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/Runner.swift
module/x86_64.swiftmodule'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/leveldb-libr
ary/leveldb.framework'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/IosAwnCore/I
osAwnCore.framework'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/PromisesObjC
/FBLPromises.framework'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/GTMSessionFe
tcher/GTMSessionFetcher.framework'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/flutter_pays
tack/flutter_paystack.framework'
note: Removed stale file
'/Users/Alex/Library/Developer/Xcode/DerivedData/Runner-cmfnsqkeiveioyevfoaxiucyzarz/Build/Products/Debug-iphonesimulator/shared_prefe
rences_ios/shared_preferences_ios.framework'
Result bundle written to path:
/var/folders/kh/_1d27hws6b9_sn5cffmtwqyw0000gn/T/flutter_tools.2uoDII/flutter_ios_build_temp_dirNxtCwa/temporary_xcresult_bundle
Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/Alex/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.1/ios/Classes/messages.g.m:6:8
Could not build the application for the simulator.
Error launching application on iPhone 13.
Alex@MacBook-Pro-Alex ios %