Open mohbasirudin opened 8 months ago
That's bad, indeed. I'm not able to reproduce unfortunately using a blank project. Have you tried a flutter clean (although deleting the ios folder is already a good step, might try to delete the build folder too). I have tried building using flutter build ipa
with success. Which command are you using for building?
That's bad, indeed. I'm not able to reproduce unfortunately using a blank project. Have you tried a flutter clean (although deleting the ios folder is already a good step, might try to delete the build folder too). I have tried building using
flutter build ipa
with success. Which command are you using for building?
I was try to delete ios folder and run flutter clean. Also delete build folder via xcode. I use menu "product > archive" via xcode and use "flutter build ipa" via command. But still get same error.
What's weird is that it works in debug.
So sorry if I ask you try things you have already tried:
Can you confirm that you set:
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO;
for all your configuration (check in project.pbxproj) and that no podfile override this setting (a good text search can help)?
Does it happen if you create a blank project (you can try the example project in sqflite)?
Have you try the suggestions here: https://forums.developer.apple.com/forums/thread/651941
rm -rf ~/Library/Developer/Xcode/DerivedData/
rm -rf ~/Library/Caches/CocoaPods/
pod deintegrate
pod update
Many have reported similar issues in stackoverflow with firebase (with sometimes weird resolutions)
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER
yap, i was try it to set value to "NO" and following bellow, but nothing has change.
rm -rf ~/Library/Developer/Xcode/DerivedData/ rm -rf ~/Library/Caches/CocoaPods/ pod deintegrate pod update
i tried to create a blank app, and just add sqflite repo's and i don't wriite any code, "just a black app & sqflite repo's". i got same error when build app via xcode, product > archive
I don't know what to say neither what you can try (maybe dart pub cache repair
) as I tried the exact following steps - I have a use macbook pro M1, flutter 3.16.9, XCode 15.2, Sonoma 14.2.1, is that your versions too?
Can you try the steps below in a console show me the output?
mkdir testiosapp
cd testiosapp
flutter create -t app --platforms ios .
flutter pub add sqflite
flutter build ios
and then I can open XCode and build for archive.
If it fails, can you try dart pub cache repair
and try the same steps?
I don't know what to say neither what you can try (maybe
dart pub cache repair
) as I tried the exact following steps - I have a use macbook pro M1, flutter 3.16.9, XCode 15.2, Sonoma 14.2.1, is that your versions too?Can you try the steps below in a console show me the output?
mkdir testiosapp cd testiosapp flutter create -t app --platforms ios . flutter pub add sqflite flutter build ios
and then I can open XCode and build for archive.
If it fails, can you try
dart pub cache repair
and try the same steps?
yap, that's my setup, and i did that's step. if i build ipa via command like "flutter build ios"
or "flutter build ipa"
, it's worked. but, when i try upload it via transporter i got error message about "verified", that i have to do it via xcode > product > archive > verified > export
I'm not sure I understand, the initial issue happen during the build process. First try to build from the command line and then (once the flutter build is successful on the command line) use XCode to export.
I'm not sure I understand, the initial issue happen during the build process. First try to build from the command line and then (once the flutter build is successful on the command line) use XCode to export.
i got this error when try build via command flutter build ipa --release
rxzero@**** % flutter build ipa --release
Archiving com..... Automatically signing iOS for device deployment using specified development team in Xcode project: D2****RNH Running Xcode build...
Xcode archive done. 47.9s Failed to build iOS app Error (Xcode): double-quoted include "SqfliteDarwinDatabase.h" in framework header, expected angle-bracketed instead /Users/rxzero/.pub-cache/hosted/pub.dev/sqflite-2.3.2/darwin/Classes/SqfliteDarwinDB.h:5:8Error (Xcode): double-quoted include "SqfliteDarwinResultSet.h" in framework header, expected angle-bracketed instead /Users/rxzero/.pub-cache/hosted/pub.dev/sqflite-2.3.2/darwin/Classes/SqfliteDarwinDB.h:6:8
Error (Xcode): double-quoted include "SqfliteDarwinDatabaseAdditions.h" in framework header, expected angle-bracketed instead /Users/rxzero/.pub-cache/hosted/pub.dev/sqflite-2.3.2/darwin/Classes/SqfliteDarwinDB.h:7:8
Error (Xcode): double-quoted include "SqfliteDarwinDatabaseQueue.h" in framework header, expected angle-bracketed instead /Users/rxzero/.pub-cache/hosted/pub.dev/sqflite-2.3.2/darwin/Classes/SqfliteDarwinDB.h:8:8
Error (Xcode): double-quoted include "SqfliteDarwinResultSet.h" in framework header, expected angle-bracketed instead /Users/rxzero/.pub-cache/hosted/pub.dev/sqflite-2.3.2/darwin/Classes/SqfliteDarwinDatabase.h:1:8
Error (Xcode): double-quoted include "SqfliteDarwinDatabase.h" in framework header, expected angle-bracketed instead /Users/rxzero/.pub-cache/hosted/pub.dev/sqflite-2.3.2/darwin/Classes/SqfliteDarwinDatabaseAdditions.h:9:8
Error (Xcode): double-quoted include "SqfliteDarwinDatabase.h" in framework header, expected angle-bracketed instead /Users/rxzero/.pub-cache/hosted/pub.dev/sqflite-2.3.2/darwin/Classes/SqfliteDarwinDatabaseQueue.h:9:8
Error (Xcode): double-quoted include "SqfliteDarwinDB.h" in framework header, expected angle-bracketed instead /Users/rxzero/.pub-cache/hosted/pub.dev/sqflite-2.3.2/darwin/Classes/SqfliteDarwinImport.h:11:8
Error (Xcode): double-quoted include "SqfliteCursor.h" in framework header, expected angle-bracketed instead /Users/rxzero/.pub-cache/hosted/pub.dev/sqflite-2.3.2/darwin/Classes/SqfliteDatabase.h:9:8
Error (Xcode): double-quoted include "SqfliteOperation.h" in framework header, expected angle-bracketed instead /Users/rxzero/.pub-cache/hosted/pub.dev/sqflite-2.3.2/darwin/Classes/SqfliteDatabase.h:10:8
Error (Xcode): double-quoted include "SqfliteImport.h" in framework header, expected angle-bracketed instead /Users/rxzero/.pub-cache/hosted/pub.dev/sqflite-2.3.2/darwin/Classes/SqfliteOperation.h:9:8
Error (Xcode): double-quoted include "SqfliteCursor.h" in framework header, expected angle-bracketed instead /Users/rxzero/Documents/TEST/***/ios/Pods/Target%20Support%20Files/sqflite/sqflite-umbrella.h:12:8
Error (Xcode): double-quoted include "SqfliteDarwinDatabase.h" in framework header, expected angle-bracketed instead /Users/rxzero/Documents/TEST/***/ios/Pods/Target%20Support%20Files/sqflite/sqflite-umbrella.h:13:8
Error (Xcode): double-quoted include "SqfliteDarwinDatabaseAdditions.h" in framework header, expected angle-bracketed instead /Users/rxzero/Documents/TEST/***/ios/Pods/Target%20Support%20Files/sqflite/sqflite-umbrella.h:14:8
Error (Xcode): double-quoted include "SqfliteDarwinDatabaseQueue.h" in framework header, expected angle-bracketed instead /Users/rxzero/Documents/TEST/***/ios/Pods/Target%20Support%20Files/sqflite/sqflite-umbrella.h:15:8
Error (Xcode): double-quoted include "SqfliteDarwinDB.h" in framework header, expected angle-bracketed instead /Users/rxzero/Documents/TEST/***/ios/Pods/Target%20Support%20Files/sqflite/sqflite-umbrella.h:16:8
Error (Xcode): double-quoted include "SqfliteDarwinImport.h" in framework header, expected angle-bracketed instead /Users/rxzero/Documents/TEST/***/ios/Pods/Target%20Support%20Files/sqflite/sqflite-umbrella.h:17:8
Error (Xcode): double-quoted include "SqfliteDarwinResultSet.h" in framework header, expected angle-bracketed instead /Users/rxzero/Documents/TEST/***/ios/Pods/Target%20Support%20Files/sqflite/sqflite-umbrella.h:18:8
Error (Xcode): double-quoted include "SqfliteDatabase.h" in framework header, expected angle-bracketed instead /Users/rxzero/Documents/TEST/***/ios/Pods/Target%20Support%20Files/sqflite/sqflite-umbrella.h:19:8
Error (Xcode): 'Flutter/Flutter.h' file not found /Users/rxzero/.pub-cache/hosted/pub.dev/sqflite-2.3.2/darwin/Classes/SqfliteImport.h:10:8
Error (Xcode): (fatal) could not build module 'sqflite' /Users/rxzero/Library/Developer/Xcode/DerivedData/Runner-azaejcykopsgkkbynaivwgxlswhh/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFil esPath/Pods.build/Release-iphoneos/sqflite.build/VerifyModule/sqflite_objective-c++_arm64-apple-ios12.0_gnu++14/Test/Test.framework/Headers/Test.h:0:8
Error (Xcode): (fatal) could not build module 'Test' /Users/rxzero/Library/Developer/Xcode/DerivedData/Runner-azaejcykopsgkkbynaivwgxlswhh/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFil esPath/Pods.build/Release-iphoneos/sqflite.build/VerifyModule/sqflite_objective-c++_arm64-apple-ios12.0_gnu++14/Test/Test.mm:0:8
Error (Xcode): (fatal) could not build module 'sqflite' /Users/rxzero/Library/Developer/Xcode/DerivedData/Runner-azaejcykopsgkkbynaivwgxlswhh/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFil esPath/Pods.build/Release-iphoneos/sqflite.build/VerifyModule/sqflite_objective-c_arm64-apple-ios12.0_gnu11/Test/Test.framework/Headers/Test.h:0:8
Error (Xcode): (fatal) could not build module 'Test' /Users/rxzero/Library/Developer/Xcode/DerivedData/Runner-azaejcykopsgkkbynaivwgxlswhh/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFil esPath/Pods.build/Release-iphoneos/sqflite.build/VerifyModule/sqflite_objective-c_arm64-apple-ios12.0_gnu11/Test/Test.m:0:8
Once you said
if i build ipa via command like "flutter build ios" or "flutter build ipa", it's worked.
then you said
i got this error when try build via command flutter build ipa --release
So I'm confused. The error only happen on your existing project ? Sorry I don't know what to try besides cleaning (pub cache, build, pods). I cannot reproduce. Now that FMDB is going back again to be available on cocoapod this might change again in the near future.
i'm confused too. even though, i just add the last of sqflite
repo and without add any code in my project, like a just blank project with sqflite
repo. but, i got error :(
@mohbasirudin Can you try the steps I highlighted in my comment here: https://github.com/tekartik/sqflite/issues/1080#issuecomment-1925247629
I can run normally my app on simulator, but when i try to archive for upload to App Store via xcode i got some error library, like:
=========
I was try some method, but nothing has changed, like:
My tech: