簡體   English   中英

我的 Flutter 應用程序的 Xcode 存檔錯誤

[英]Error on Xcode Archive of my Flutter application

一段時間以來,我在使用 Xcode 中的存檔在 Apple Store 上發布我在 Flutter 中開發的應用程序時遇到了問題。 具體來說,我得到的錯誤與構建配置設置為調試的架構有關。 如果我將架構設置為發布,則生成的存檔沒有錯誤,但它已被破壞,因此我無法發布它。 下面的屏幕顯示了我得到的錯誤。 任何人都可以幫助我嗎? 我在使用 url_launcher_ios 和 SwiftyGif 時遇到了這個錯誤。 非常感謝那些會幫助我的人!

當我嘗試使用調試方案進行存檔時出現的錯誤

編輯您的 pod 文件,如下所示。

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
          config.build_settings['ENABLE_BITCODE'] = 'NO'
        end
  end
end

使用 XCode 打開bitcode模塊並在構建設置中搜索位碼。 將啟用設置為否。

這對我有用,而不是嘗試在 Podfile 中執行此操作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM