Mac 平台下unity 匯出IOS專案問題

2021-10-10 07:29:25 字數 1203 閱讀 8590

mac 平台下unity 匯出ios專案問題

作為乙個新手,嘗試在mac 平台下unity 接入admob unity匯出ios專案過程**現了一系列的問題,現把所有問題總結

官方說:在unity 平台需要搭建cocoapods環境

搭建環境的方法參考:

!!!重點來了,注意!!!

最新版的macos catalina系統命令行執行pod setup命令直接結束啦;

莫著急,我們手動安裝本地庫,速度絕對快

命令列執行以下操作

git clone ~/.cocoapods/repos/trunk

unity build完成之後,出現

ios framework addition failed due to a cocoapods installation failure. this will will likely result in an non-functional xcode project.

after the failure, 「pod repo update」 was executed and succeeded. 「pod install」 was then attempted again, and still failed. this may be due to a broken cocoapods installation. see: for potential solutions.

pod install output:

analyzing dependencies

[!] cocoapods could not find compatible versions for pod 「google-mobile-ads-sdk」:

in podfile:

google-mobile-ads-sdk (~> 7.63)

specs satisfying thegoogle-mobile-ads-sdk (~> 7.63)dependency were found, but they required a higher minimum deployment target.

這個看最後一句話,只需要在unity ios 平台 other setting 中修改target minimum ios version 9.0就可以

平台下拉選擇設定項

新增下拉選擇部件的下拉列表選項,並設定選項內容是否唯讀。在窗體的事件管理 載入事件中,為下拉選擇部件設定下拉選項 然後在事件管理 控制項 下拉選擇的值變化事件中新增如下 獲取下拉選項的關鍵值 顯示值 執行效果 注 通過該例項應用我們發現,如果用平台中封裝好的下拉選擇部件方法 設定項 為下拉選擇部件設...

Mac平台下Opencv開發環境搭建

opencv open source computer vision library 是乙個開源的跨平台的計算機視覺庫,它實現了影象處理和計算機視覺領域的很多通用演算法,可以在多種計算機平台上執行,支援c c python等語言,也提供了ruby matlab等語言的介面。opencv是基於bsd許...

如何在IOS平台下搭建PhoneGap開發環境

由於在下最近在做基於html5的跨平台移植,搭建環境的時候著實費了不少勁。現在空閒下來順便整理一下,給大家分享。首先介紹一下phonegap。phonegap是一款基於html5標準的跨平台開源手機web應用開發框架。它允許使用者通過web技術訪問移動裝置的本地應用 api介面及應用程式等。這裡說一...