Modify signature
First, open the flutter project, open IOS module in Xcode, open the IOS folder in Xcode, modify the team, and change the signature to your IOS app signature.
In Android studio, run it on IOS simulator, and make sure there is no problem.
Add plug-in dependency
In pubspec.yaml, add plug-ins under dependencies to integrate zhgd with source code_ native_ Take the plugin native plug-in as an example
zhgd_native_plugin:
path: ../zhgd_native_plugin
Note: the plug-in project is located in the same level directory of the flutter project.
common problem
file not found with < angled> include; Use "quotes" instead
select target, build settings – & gt; Header search paths, add the corresponding header file search path, such as “${pods_ CONFIGURATION_ BUILD_ DIR}/Masonry/Masonry.framework/Headers” 'Masonry.h' file not found with < angled> include; Use is used in the use "quotes" instead
podfile file_ frameworks!( Because several pods are swift libraries, and swift can only be integrated by framework. Therefore, the import method of header file has changed. It can only be imported through # import “masonry. H”, not # Import & lt; Masonry.h> Import in the same way:-1: Undefined symbol: _ OBJC_ CLASS_$_ Fluttermethodchannel
and : - 1: undefined symbol:_ OBJC_ CLASS_$_ The fluttermethodchannel
compiler cannot find the flutter. H header file. Most likely, use is used in podfile_ frameworks!( Because a swift plug-in is referenced in the project. This problem is the problem of flutter itself https://github.com/flutter/flutter/issues/10968 。Read More:
- Flutter – iOS: Command /bin/sh failed with exit code 255
- [building the flutter environment] error: the flutter directory is not a clone of the GitHub project
- Project Error: dyld[77548]: library not loaded: @rpath (IOS pod installed)
- Take over the project, the project path is inconsistent with the native UE4 path and the solution of Failed to open descriptor file ..//..//..//UE4/UE4.uproject
- Flutter development: prompt error parsing localfile when running the project: ‘/ users / xxx / Android / APP / SRC / main / androidmanifest. XML’… Solution
- Error failed to build IOS project. We ran “xcodebuild” command but it exited wit
- [Solved] Xcode 11 Create New Project Error: Safe Area Layout Guide before iOS 9.0 [12]
- [solution] install youcompleteme through VIM plug-in manager VIM plug, including ycmd server shutdown solution
- Automatically assigning platform `iOS` with version `8.0` on target `Runner`
- IOS reverse error: use of undeclared identifier ‘mshookivar’
- Flutter Error: Cannot run with sound null safety, because the following dependencies don‘t support
- Does flutter report an error after upgrading 2.5?
- Solve the problem of permission after flutter package_ Handler failure
- React Native Network Request Failed solution
- Spring cloud Alibaba 2020.0.rc1 does not integrate ribbon error reporting unknownhostexception
- Notepad + + has no plug-in manager solution
- Nutz framework: using native SQL for CND conditions
- React Native: TypeError: Network request failed
- IOS error: linker command failed with exit code 1 solution
- Realization of breakpoint download based on DIO in flutter