代码之家  ›  专栏  ›  技术社区  ›  S.Hashmi

sharedApplication不可用

  •  0
  • S.Hashmi  · 技术社区  · 2 年前

    在xCode中运行应用程序时出现此错误。应用程序正在使用旧版本的react native 0.64。这是屏幕截图:

    enter image description here

    1 回复  |  直到 2 年前
        1
  •  1
  •   Pratik Prakash Bindage    2 年前

    解决

    1. 根据苹果开发者论坛上发布的说明,可以通过重新安装茧和所有荚来解决“共享应用程序不可用”的错误。

    2. 只需要App-Extension-Safe API也可以通过在目标的生成选项中将其设置为“否”来解决。

    3. 请将这些行插入您的pod文件,然后重新安装每个pod。

      use_flipper!()
      
      post_install do |installer|
      react_native_post_install(installer)
      
      installer.pods_project.targets.each do |target|
          target.build_configurations.each do |config|
            config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
          end
        end
       end
      end
      
    推荐文章