Issue
I'm trying to produce an archive (IPA file) of my application made with Flutter. I'm following the official guide for that: Preparing an iOS app for release: Create a build archive.
I have a problem producing the archive when I'm using the flutter_secure_storage package.
When I try to produce the archive (Xcode -> Product -> Archive), I get the following error:
Runner: 1 issue
/Path/to/my/project/ios/Runner/GeneratedPluginRegistrant.m:6:9:
'flutter_secure_storage/FlutterSecureStoragePlugin.h' file not found
I can compile the project (from Xcode/Visual Code or using "flutter build ios --release" command) without any issue. I only get the issue when I'm trying to generate the archive.
Do I need to change something in the project settings for creating the archive?
Solution
The problem was that I was trying to create the archive from the Runner.xcodeproj instead of the Runner.xcworkspace (which defines the pods targets).
Switching to that project solved the issue to produce the archive.
Answered By - skuallpa
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.