Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS 编译时报错 #23

Closed
hqwlkj opened this issue Dec 13, 2019 · 11 comments
Closed

IOS 编译时报错 #23

hqwlkj opened this issue Dec 13, 2019 · 11 comments
Labels
stale 长时间没有响应

Comments

@hqwlkj
Copy link

hqwlkj commented Dec 13, 2019

插件版本
amap_location_fluttify: ^0.5.1+a918944
遇到bug的平台(Android/iOS)
ios
描述bug
odule 'AMapFoundationKit' is defined in both '/Users/yanghc/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/2KQUT212IJ5BP/AMapFoundationKit-2HH1E149E2LQZ.pcm' and '/Users/yanghc/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/2KQUT212IJ5BP/AMapFoundationKit-2L7PJSSVEO1YW.pcm'
复现步骤

期望行为

截图
image

flutter doctor


MacBook-Pro app % flutter doctor -v
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.1 19B88, locale zh-Hans-CN)
    • Flutter version 1.12.13+hotfix.5 at /usr/local/flutter
    • Framework revision 27321ebbad (2 days ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/yanghc/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2.1, Build version 11B500
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 42.0.4
    • Dart plugin version 193.5731

[✓] VS Code (version 1.39.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.6.0

[✓] Connected device (1 available)
    • iPhone 11 Pro Max • 297F1EBD-45F0-42E7-845B-2BD64E4A74BC • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-2 (simulator)

• No issues found!

@yohom
Copy link
Member

yohom commented Dec 13, 2019

清空Xcode下的DerivedData文件夹, ~/Library/Developer/Xcode/DerivedData/.

@hqwlkj
Copy link
Author

hqwlkj commented Dec 13, 2019

@yohom 好的我先试一试

@hqwlkj
Copy link
Author

hqwlkj commented Dec 13, 2019

现在又是 Module 'amap_core_fluttify' not found 这个错误提示了。

@mofan20
Copy link

mofan20 commented Dec 14, 2019

我也遇到这样的问题,解决了?@yohom @hqwlkj

@hqwlkj
Copy link
Author

hqwlkj commented Dec 14, 2019

@mofan20 没有

@hqwlkj
Copy link
Author

hqwlkj commented Dec 14, 2019

我使用 flutter 的 1.12.13+hotfix.5 版本重新创建项目,然后在安装插件,可以正常运行了,但是编译的时候还是有一些警告⚠️⚠️⚠️⚠️的提示:


注: /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/amap_location_fluttify-0.5.1+a918944/android/src/main/java/me/yohom/amap_location_fluttify/AmapLocationFluttifyPlugin.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/amap_location_fluttify-0.5.1+a918944/android/src/main/java/me/yohom/amap_location_fluttify/AmapLocationFluttifyPlugin.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。

好在是不影响程序运行 。

@AstrayV
Copy link

AstrayV commented Dec 15, 2019

我也是 Module 'amap_core_fluttify' not found 这个问题

@hqwlkj
Copy link
Author

hqwlkj commented Dec 16, 2019

我也是 Module 'amap_core_fluttify' not found 这个问题

最好是从新新建一个项目,再将你的依赖项目重新安装。目前我就是采用的这种方式处理的。

@tzt1994
Copy link

tzt1994 commented Dec 30, 2019

这个问题解决了吗?我的是Module 'amap_core_fluttify' not found

@hqwlkj
Copy link
Author

hqwlkj commented Jan 2, 2020

@tzt1994 是的有同样的问题,不能在Xcode里面打包

@stale
Copy link

stale bot commented Mar 6, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale 长时间没有响应 label Mar 6, 2020
@stale stale bot closed this as completed Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale 长时间没有响应
Projects
None yet
Development

No branches or pull requests

5 participants