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上编译失败的问题,最低支持版本8.0修改为9.0 #154

Merged
merged 1 commit into from
Oct 28, 2020

Conversation

CNjacob
Copy link

@CNjacob CNjacob commented Oct 28, 2020

No description provided.

@simplezhli
Copy link
Owner

你的异常具体是什么?使用的什么版本?我看到flutter相关的更改 https://github.com/flutter/flutter/pull/68729

@CNjacob
Copy link
Author

CNjacob commented Oct 28, 2020

异常信息如下:
/Users/user/Documents/FlutterSDK/flutter/.pub-cache/hosted/pub.flutter-io.cn/barcode_scan-3.0.1/ios/Classes/protos/protos.pb.swift:14:8: error: compiling for iOS 8.0, but module 'SwiftProtobuf' has a minimum deployment target of iOS 9.0: /Users/user/AndroidStudioProjects/flutter_deer/build/ios/Debug-iphonesimulator/SwiftProtobuf/SwiftProtobuf.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
import SwiftProtobuf

我刚开始学习flutter,所以没有注意到 flutter 相关的更改,感谢指导😄

@CNjacob
Copy link
Author

CNjacob commented Oct 28, 2020

Xcode12.1版本

@simplezhli
Copy link
Owner

发我一下你的ios目录Podfile.lock文件截图。我的这样:
image

@simplezhli
Copy link
Owner

怀疑你的SwiftProtobuf版本是1.13.0,它设置的是9.0.
image

@simplezhli
Copy link
Owner

image

避免此类问题,我合并一下。感谢你的PR!

@simplezhli simplezhli merged commit 0a9f5a3 into simplezhli:master Oct 28, 2020
@CNjacob
Copy link
Author

CNjacob commented Oct 29, 2020

是的,我的 SwiftProtobuf 是 1.13.0,应该是我感谢大佬开源代码让我学习😄

@yutaolian
Copy link

image
降版本试试,我本地降了可以用

@CNjacob
Copy link
Author

CNjacob commented Nov 12, 2020

降版本是可以的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants