【问题标题】:Flutter - Operation not permitted (in target 'url_launcher' from project 'Pods')Flutter - 不允许操作(在项目“Pods”的目标“url_launcher”中)
【发布时间】:2019-12-19 12:03:17
【问题描述】:

我正在尝试在 iOS 中运行我的应用程序,但不断收到多个插件的这些错误。不确定是什么问题,并且这些插件没有针对 iOS 的具体说明。如果有人遇到同样的问题,请告诉我。

error: open /Users/vikasp/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.6.3+3/ios/Classes/SharePlugin.h: Operation not permitted (in target 'share' from project 'Pods')

error: open /Users/vikasp/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity-0.4.5+6/ios/Classes/ConnectivityPlugin.h: Operation not permitted

【问题讨论】:

  • @chunhunghan ,这里“sudo chown -R username:staff projectFolder”我需要从flutter添加iOS项目路径还是我的完整flutter项目路径,我需要添加哪个用户名?跨度>
  • @chunhunghan,我尝试了上述解决方案,但它不适合我。
  • 我已经删除了之前的一个并克隆了项目。现在我没有遇到这个错误。

标签: ios flutter plugins


【解决方案1】:

通过System Preferences -> Security & Privacy -> Privacy -> Full Disk Access 授予您的 Xcode 全盘访问权限并标记 Xcode

如果不是这样,here 是与此相关的另一个问题。

【讨论】:

    猜你喜欢
    • 2021-08-30
    • 1970-01-01
    • 1970-01-01
    • 2016-01-11
    • 1970-01-01
    • 2020-04-28
    • 2021-11-16
    • 2013-11-01
    • 1970-01-01
    相关资源
    最近更新 更多