【Unity】「Missing Project ID」のメッセージが出る場合の対処法 - Qiita
ビルドするときに「Missing Project ID」ダイアログが表示される時は↑の記事にあるように
右上にある雲の形をした「Manage service」ボタンを押して、unlinkしてからlinkすれば良いみたいです。
ただ、unlinkするボタンが自分の場合は潰れていて押せなくなっていました。
そういう時はUnityを再起動すればunlinkボタンが押せるようになりました。
【Unity】「Missing Project ID」のメッセージが出る場合の対処法 - Qiita
ビルドするときに「Missing Project ID」ダイアログが表示される時は↑の記事にあるように
右上にある雲の形をした「Manage service」ボタンを押して、unlinkしてからlinkすれば良いみたいです。
ただ、unlinkするボタンが自分の場合は潰れていて押せなくなっていました。
そういう時はUnityを再起動すればunlinkボタンが押せるようになりました。
18: from /Users/sample/.rbenv/versions/2.6.5/bin/fastlane:23:in `<main>' 17: from /Users/sample/.rbenv/versions/2.6.5/bin/fastlane:23:in `load' 16: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/bin/fastlane:23:in `<top (required)>' 15: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/fastlane/lib/fastlane/cli_tools_distributor.rb:111:in `take_off' 14: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/deliver/lib/deliver/commands_generator.rb:17:in `start' 13: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/deliver/lib/deliver/commands_generator.rb:186:in `run' 12: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!' 11: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!' 10: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command' 9: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run' 8: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call' 7: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/deliver/lib/deliver/commands_generator.rb:118:in `block (2 levels) in run' 6: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/deliver/lib/deliver/setup.rb:21:in `run' 5: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/deliver/lib/deliver/setup.rb:46:in `generate_deliver_file' 4: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/spaceship/lib/spaceship/connect_api/models/app.rb:191:in `get_latest_app_store_version' 3: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/spaceship/lib/spaceship/connect_api/models/app.rb:191:in `sort_by' 2: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/spaceship/lib/spaceship/connect_api/models/app.rb:191:in `each' 1: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/spaceship/lib/spaceship/connect_api/models/app.rb:191:in `block in get_latest_app_store_version' /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/spaceship/lib/spaceship/connect_api/models/app.rb:191:in `parse': no implicit conversion of nil into String (TypeError) 18: from /Users/sample/.rbenv/versions/2.6.5/bin/fastlane:23:in `<main>' 17: from /Users/sample/.rbenv/versions/2.6.5/bin/fastlane:23:in `load' 16: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/bin/fastlane:23:in `<top (required)>' 15: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/fastlane/lib/fastlane/cli_tools_distributor.rb:111:in `take_off' 14: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/deliver/lib/deliver/commands_generator.rb:17:in `start' 13: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/deliver/lib/deliver/commands_generator.rb:186:in `run' 12: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!' 11: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!' 10: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command' 9: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run' 8: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call' 7: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/deliver/lib/deliver/commands_generator.rb:118:in `block (2 levels) in run' 6: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/deliver/lib/deliver/setup.rb:21:in `run' 5: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/deliver/lib/deliver/setup.rb:46:in `generate_deliver_file' 4: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/spaceship/lib/spaceship/connect_api/models/app.rb:191:in `get_latest_app_store_version' 3: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/spaceship/lib/spaceship/connect_api/models/app.rb:191:in `sort_by' 2: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/spaceship/lib/spaceship/connect_api/models/app.rb:191:in `each' 1: from /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/spaceship/lib/spaceship/connect_api/models/app.rb:191:in `block in get_latest_app_store_version' /Users/sample/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.157.2/spaceship/lib/spaceship/connect_api/models/app.rb:191:in `parse': [!] no implicit conversion of nil into String (TypeError)
fastlane deliver init
をしようとすると↑のようなエラーが出ました。
iTunesConnectに「提出準備中」の申請ページが無いとダメなようです。
ただ
fastlane deliver download_screenshots --use_live_version
「--use_live_version」をつけてあげるとスクショに関しては「配信準備完了」となっていても取得できるようです。metadataはつけてもダメでした。
なのでmetadataに関しては一旦iTunes Connect側で「提出準備中」のページを作る必要があるみたいです。
Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6
Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6
Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6
Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6
Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6
Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6
Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6
Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6
fastlaneを実行すると大量にこのメッセージが出るようになりました。
メッセージの通り以下のコマンドを打つと修復されました。
gem pristine json --version 1.8.6
有効なプロビジョニングプロファイルが無いことで表示されるようです。(期限切れなど)
Looks like no provisioning profile mapping was provided
なども表示されました。
Xcode Project - fastlane docs
fastlaneの公式Docによると自動サインインはオフになっているようです。
なので、provisioningProfilesを指定してあげるか、自動更新フラグをつけてあげる必要があります。
build_app( export_method: "app-store", export_options: { provisioningProfiles: { "com.example.bundleid" => "abc-abc-abc.mobileprovision", } } )
build_app(export_xcargs: "-allowProvisioningUpdates")
Provisioning Profilesは以下に.mobileprovisionという拡張子で保存されています。
~/Library/MobileDevice/Provisioning\ Profiles/
対象のファイルをクイックルック(スペースキーを押す)と中身が簡易的に見れます。
これで削除したものも確認できるかと思います。
なぜでしょうか?
先ほどまでできていたのでできるはずですができません。
新しいレイアウトになり、一旦リリーを作成すると「リリース」タブに表示されます。
なので「リリースダッシュボード」から「リリース」タブへ移動して、既存のものを編集するか、または、破棄することで右上の「新しいリリースを作成」が活性になります
まだ新しいレイアウトに慣れていないから、戸惑いました。
Cannot add menu item 'Assets/External Dependency Manager/Package Manager Resolver/Migrate Packages' for method 'PackageMigrator.MigratePackages' because a menu item with the same name already exists.
UnityEditor.EditorApplication:Internal_InvokeTickEvents()
PackageMigrator.MigratePackagesは別の名前で同じような注意文がたくさん出ます。
理由はメッセージの通りで重複が起こっているためです。
Assets以下のところにあるものと、package managerに入っているものと両方被っていました。
なので、package managerの方を削除すると注意文が消えます。
これで様子見してみます。
攻撃範囲の円を表す時に9スライスでやれば良いかなと思ったのですが、9スライスは4角を使って拡大縮小するのでできません。
歪な形になってしまいます。
元は円の画像がこんな感じになります。↓
How can I draw a circle in Unity3D? - Stack Overflow
解決策は3パターン?
1. LineRendererで円を描く
2. shaderで円を描く
3. 普通に画像で描き、拡大縮小を気にしない
今回は3の普通に画像で描きました。
拡大縮小しても何も気にならなかったので良しとします。