每當我爲iOS構建我的遊戲時,我需要刪除GoogleMobileAds.framework並將其添加到Add Files To ...,否則XCode會抱怨「未找到模塊'GoogleMobileAds'」。需要在每個版本上重新添加GoogleMobileAds?
有沒有人有任何想法如何讓它'棒'? (我對XCode非常陌生)
每當我爲iOS構建我的遊戲時,我需要刪除GoogleMobileAds.framework並將其添加到Add Files To ...,否則XCode會抱怨「未找到模塊'GoogleMobileAds'」。需要在每個版本上重新添加GoogleMobileAds?
有沒有人有任何想法如何讓它'棒'? (我對XCode非常陌生)
在編輯器腳本中使用[PostBuildProcess] attribute Unity生成它之後,您可以自動將框架添加到Xcode項目中。將腳本放置在資源/編輯器中。
這是example for adding frameworks。這裏是a plugin,這似乎是使用JSON文件來指定修改的重要舉動。
[PostProcessBuild] // <- this is where the magic happens
public static void OnPostProcessBuild(BuildTarget target, string path) {
// Do post-build processing here
}
謝謝你,這會節省很多時間。 – Micael
這對我有用。 http://stackoverflow.com/a/35653744/1890317 –