Comments (7)
Hi,
can you please try with Swift version 4.0 instead of 3.0 and tell me if it works?
Thanks a lot
from flutter_string_encryption.
sadly no, it's the same error if I change the Podfile to
config.build_settings['SWIFT_VERSION'] = '4.0'
looking at ; https://stackoverflow.com/questions/40484816/modulename-swift-h-file-not-found-in-xcode8 it seems to suggest that it's some build option inside the module.. but.. I am not an iOS dev by a long stretch so this reads mostly as greek to me (sorry!!)
from flutter_string_encryption.
Is there any fix to this yet? Encountered the same problem here
from flutter_string_encryption.
Hi,
are you using the use_frameworks!
flag inside your Podfile?
from flutter_string_encryption.
I am getting the same error in Xcode Version 9.2. I added use_frameworks!
to my Podfile and set the Swift version to 4.0.
This is the error:
<module-includes>:1:9: note: in file included from <module-includes>:1: #import "Headers/flutter_string_encryption-umbrella.h" ^ /Users/............/ios/Pods/Target Support Files/flutter_string_encryption/flutter_string_encryption-umbrella.h:13:9: error: include of non-modular header inside framework module 'flutter_string_encryption': '/Users/........./flutter/.pub-cache/hosted/pub.dartlang.org/flutter_string_encryption-0.1.0/ios/Classes/FlutterStringEncryptionPlugin.h' #import "FlutterStringEncryptionPlugin.h" ^ <unknown>:0: error: could not build Objective-C module 'flutter_string_encryption'
from flutter_string_encryption.
Same here:
Xcode's output:
↳
=== BUILD TARGET shared_preferences OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/sergi/flutter_dietes/ios/Pods/SCrypto/Source/SCrypto.swift:107:111: warning: using '!' is not allowed here; treating this as '?' instead
typealias Function = (_ data: UnsafeRawPointer, _ len: CC_LONG, _ md: UnsafeMutablePointer) -> UnsafeMutablePointer!
^ ~
?
=== BUILD TARGET flutter_string_encryption OF PROJECT Pods WITH CONFIGURATION Debug ===
While building module 'Flutter' imported from /Users/sergi/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_string_encryption-0.2.0/ios/Classes/FlutterStringEncryptionPlugin.h:1:
In file included from :1:
In file included from /Users/sergi/flutter_dietes/ios/Pods/../.symlinks/flutter/ios/Flutter.framework/Headers/Flutter.h:44:
In file included from /Users/sergi/flutter_dietes/ios/Pods/../.symlinks/flutter/ios/Flutter.framework/Headers/FlutterAppDelegate.h:11:
In file included from /Users/sergi/flutter_dietes/ios/Pods/../.symlinks/flutter/ios/Flutter.framework/Headers/FlutterPlugin.h:13:
/Users/sergi/flutter_dietes/ios/Pods/../.symlinks/flutter/ios/Flutter.framework/Headers/FlutterPlatformViews.h:25:11: warning: parameter 'viewIdentifier' not found in the function declaration [-Wdocumentation]
* @param viewIdentifier A unique identifier for this UIView
.
^~~~~~~~~~~~~~
/Users/sergi/flutter_dietes/ios/Pods/../.symlinks/flutter/ios/Flutter.framework/Headers/FlutterPlatformViews.h:26:11: warning: parameter 'arguments' not found in the function declaration [-Wdocumentation]
* @param arguments Parameters for creating the UIView
sent from the Dart side of the Flutter app.
^~~~~~~~~
While building module 'Flutter' imported from /Users/sergi/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_string_encryption-0.2.0/ios/Classes/FlutterStringEncryptionPlugin.h:1:
In file included from :1:
In file included from /Users/sergi/flutter_dietes/ios/Pods/../.symlinks/flutter/ios/Flutter.framework/Headers/Flutter.h:44:
In file included from /Users/sergi/flutter_dietes/ios/Pods/../.symlinks/flutter/ios/Flutter.framework/Headers/FlutterAppDelegate.h:11:
/Users/sergi/flutter_dietes/ios/Pods/../.symlinks/flutter/ios/Flutter.framework/Headers/FlutterPlugin.h:213:11: warning: parameter 'factoryId::' not found in the function declaration [-Wdocumentation]
* @param factoryId:: A unique identifier for the factory, the Dart code of the Flutter app can use
^~~~~~~~~~~
/Users/sergi/flutter_dietes/ios/Pods/../.symlinks/flutter/ios/Flutter.framework/Headers/FlutterPlugin.h:213:11: note: did you mean 'factoryId'?
* @param factoryId:: A unique identifier for the factory, the Dart code of the Flutter app can use
^~~~~~~~~~~
factoryId
3 warnings generated.
/Users/sergi/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_string_encryption-0.2.0/ios/Classes/FlutterStringEncryptionPlugin.m:2:9: fatal error: 'flutter_string_encryption/flutter_string_encryption-Swift.h' file not found
#import <flutter_string_encryption/flutter_string_encryption-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings and 1 error generated.
Could not build the application for the simulator.
Error launching application on iPhone XR.
from flutter_string_encryption.
Regarding the last error here from josepalbert95, you may try this :
- make sure your create a fresh, empty Flutter project with the Swift support ON MAC (you choose this when you create the project in Android Studio). If you created the project on Windows, this error will still show.
- copy pubspec.yaml, everything from lib folder and any other directories and files your project needs into the new freshly created project on MAC
- open ios/workspace file in XCode and set your signing info - and everything else necessary
- edit Podspec inside iOS dir and just uncomment "platform :ios, '9.0'". No need to change anything else
- connect your device/emulator and type "flutter run" - it should work
Tried on latest Catalina 10.15 and latest XCode 11.3.1
from flutter_string_encryption.
Related Issues (20)
- CocoaPods could not find compatible versions for pod "flutter_string_encryption HOT 3
- Run after upgrade to 0.2.0 HOT 2
- Fatal error: args are formatted badly HOT 6
- Unable to determine Swift version HOT 5
- implement aes-ecb HOT 1
- xcode 10 build issues HOT 8
- Gradle error HOT 1
- Failed to resolve: android.test.runner:1.1.1
- Why it is static_framework? HOT 1
- Encrypted data will be lost when user upgrades to Android 9 HOT 4
- Could not find com.github.tozny:java-aes-crypto:1.1.0 HOT 1
- Failed to handle method call:- java.lang.IllegalArgumentException: Cannot parse iv:ciphertext:mac HOT 2
- how to use it by aes cbc mode? HOT 1
- Crash on iOS, Fatal error: Unexpectedly found nil while unwrapping an Optional value
- Undefined symbols for architecture arm64
- Null Safety HOT 3
- Issue: Deprecated Android Embedding Version HOT 2
- Upgrade to Dart 3
- remove flutter dependency HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_string_encryption.