「Unity/バージョンアップメモ/unity2021.3.4f1」の版間の差分

提供: 初心者エンジニアの簡易メモ
ナビゲーションに移動 検索に移動
 
(同じ利用者による、間の10版が非表示)
2行目: 2行目:
unity2020.3.21f1からunity2021.3.4f1へ
unity2020.3.21f1からunity2021.3.4f1へ


==Androidビルドで"エラーになる不具合==
==androidの最小verについて==
強制で5.1以上となる
 
==Androidビルドでエラーになる不具合==
エラー詳細
エラー詳細
  "Exception: OBSOLETE - Providing Android resources in Assets/Plugins/Android/res was removed, please move your resources to an AAR or an Android Library. See "AAR plug-ins and Android Libraries"
  "Exception: OBSOLETE - Providing Android resources in Assets/Plugins/Android/res was removed, please move your resources to an AAR or an Android Library. See "AAR plug-ins and Android Libraries"
対策方法:
対策方法:
SocialConnectorとかで、Assets/Plugins/Android/resを使ってる可能性があるので、NatShareとかに切り替える。
SocialConnectorとかで、Assets/Plugins/Android/resを使ってる可能性があるので、NatShareとかに切り替える。
==Androidビルドでsame name Google.VersionHandler.dllエラー==
エラー詳細
Multiple precompiled assemblies with the same name Google.VersionHandler.dll included on the current platform. Only one assembly with the same name is allowed per platform.
以下2つがかぶってないか。かぶってたら、上を消す。
* Assets/ExternalDependencyManager/Editor/Google.VersionHandler.dll
* Library/PackageCache/com.google.external-dependency-manager@1.2.164/ExternalDependencyManager/Editor/Google.VersionHandler.dll
Library側を消す場合は、PackageManagerのInProjectでGoogleのライブラリをoffにする必要がある。


==iOSビルドで以下エラーが出るとき==
==iOSビルドで以下エラーが出るとき==
21行目: 33行目:
*Assets/Firebase
*Assets/Firebase
*Assets/GoogleMobileAdsのResouces以外
*Assets/GoogleMobileAdsのResouces以外
*Assets/GeneratedLocalRepo
*Assets/Editor Default Resources
==iOSでアプリタイトルが日本語にならない==
xcodeのinfo.plistのCFBundleDevelopmentRegionを、ja_JPにする
参考:https://baba-s.hatenablog.com/entry/2020/07/20/000000
xcodeのInfoPlistのTargetMembershipのUnityiPhoneにチェックを付ける
参考:https://nekosuko.jp/1802/
==iOSビルド時に"bitcode enabled"エラーが出る時==
エラー詳細
error build: '~/Library/Developer/Xcode/DerivedData/Unity-iPhone-dplpfnfntsfoifgzjcwylxlrmzdq/Build/Products/ReleaseForRunning-iphoneos/PromisesObjC/FBLPromises.framework/FBLPromises(FBLPromise.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '~/Library/Developer/Xcode/DerivedData/Unity-iPhone-dplpfnfntsfoifgzjcwylxlrmzdq/Build/Products/ReleaseForRunning-iphoneos/PromisesObjC/FBLPromises.framework/FBLPromises' for architecture arm64
BuildSettingのEnableBitcodeをYesからNoに変更する

2022年10月18日 (火) 00:01時点における最新版

バージョンアップ情報

unity2020.3.21f1からunity2021.3.4f1へ

androidの最小verについて

強制で5.1以上となる

Androidビルドでエラーになる不具合

エラー詳細

"Exception: OBSOLETE - Providing Android resources in Assets/Plugins/Android/res was removed, please move your resources to an AAR or an Android Library. See "AAR plug-ins and Android Libraries"

対策方法: SocialConnectorとかで、Assets/Plugins/Android/resを使ってる可能性があるので、NatShareとかに切り替える。

Androidビルドでsame name Google.VersionHandler.dllエラー

エラー詳細

Multiple precompiled assemblies with the same name Google.VersionHandler.dll included on the current platform. Only one assembly with the same name is allowed per platform.

以下2つがかぶってないか。かぶってたら、上を消す。

  • Assets/ExternalDependencyManager/Editor/Google.VersionHandler.dll
  • Library/PackageCache/com.google.external-dependency-manager@1.2.164/ExternalDependencyManager/Editor/Google.VersionHandler.dll

Library側を消す場合は、PackageManagerのInProjectでGoogleのライブラリをoffにする必要がある。

iOSビルドで以下エラーが出るとき

エラー詳細

Showing Recent Messages Undefined symbol: _OBJC_CLASS_$_FIRFunctions

対応方法: Podfileがあるか確認し、なければ、すでにインストールしてるFirebaseを、もう一度インストールして、再度iosをreplaceビルドしたが、Podfileが作成されず、xcworkspaceプロジェクトが作られなく、うまく行かなかったので、以下最新へバージョンアップしたところ、Podfileが作成され、xcworkspaceも作成された。

  • Firebase-8.1.0→9.1.0
  • Admob-6.1.0→7.0.2
  • ExternalDependencyManager-1.2.166→1.2.171

予め以下フォルダを削除しておく

  • Assets/ExternalDependencyManager
  • Assets/Firebase
  • Assets/GoogleMobileAdsのResouces以外
  • Assets/GeneratedLocalRepo
  • Assets/Editor Default Resources

iOSでアプリタイトルが日本語にならない

xcodeのinfo.plistのCFBundleDevelopmentRegionを、ja_JPにする

参考:https://baba-s.hatenablog.com/entry/2020/07/20/000000

xcodeのInfoPlistのTargetMembershipのUnityiPhoneにチェックを付ける

参考:https://nekosuko.jp/1802/

iOSビルド時に"bitcode enabled"エラーが出る時

エラー詳細

error build: '~/Library/Developer/Xcode/DerivedData/Unity-iPhone-dplpfnfntsfoifgzjcwylxlrmzdq/Build/Products/ReleaseForRunning-iphoneos/PromisesObjC/FBLPromises.framework/FBLPromises(FBLPromise.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '~/Library/Developer/Xcode/DerivedData/Unity-iPhone-dplpfnfntsfoifgzjcwylxlrmzdq/Build/Products/ReleaseForRunning-iphoneos/PromisesObjC/FBLPromises.framework/FBLPromises' for architecture arm64

BuildSettingのEnableBitcodeをYesからNoに変更する