いままでiOSがらみの開発はほとんどやっていないので実機デバッグまで手こずりました。
Visual Studio For MacでHelloプロジェクトを作成
- MultiPlatform→Blank Forms App→次へ
- App NameはHello(はじめてのアプリということでお決まりのHelloですw)
- Organization Identiferはユニークになるようなドメインなどを指定(後述しますがこれはかなり大事)
- 保存先等を決めて作成!!
PR:フリーランスエンジニアとして成功したい!!
さっそくiOSシミュレータでデバッグをしてみる。中身は「Hello ContentPage」って表示するだけの簡単なものです。
おー、出たー。と素直に感動しましたw。
では実機でも見てみたいです。ということで実機デバッグに挑戦してみましたがこれがなかなか悪戦苦闘ぶりでした。
幸いMacをはじめて買った時に(4,5年前かなー)開発者登録だけはしていたのでそのへんの説明はスキップします。あと、仕事用にもらっていた開発者IDもあったりします(こいつもだいぶ手こずる原因のひとつでした)。
開発者登録にはこのサイトがわかりやすいと思いましたよ。
[iPhone] Appleの開発者登録をする, iOSアプリ作成準備
実機(iPhone)でデバッグを試してみる
iPhoneをケーブルでつなぐと、開発者登録しているのでデバッグの対象に接続したiPhoneが表示されます。だめだろうなと思いつつデバッグ実行。
やはりNo matching profiles foundうんぬんというエラーで実行できず。
このブログを参考にXcodeにてプロビジョニングプロファイルなるものを作成しました。(勉強することが山ほどあるなー)
Xcode 7 と Xamarin Studio Starter で1円も払わずに自作 iOS アプリを実機確認する (インスパイア記事)
作り方はXcodeでVisual Studio for Macの「Organization Identifer」と同じ「Bundle Identifer」にするということらしい。
ということで、これで条件はそろったので改めて実機デバッグ…できない!!
ApplicationVerificationFailed: Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.SFgd9s/extracted/Hello.iOS.app : 0xe8008016 (The executable was signed with invalid entitlements.)
error MT1006: Could not install the application '/Users/Hodo/Projects/VisualStudio/Hello/iOS/bin/iPhone/Debug/device-builds/iphone9.1-10.3.2/Hello.iOS.app' on the device 'White Solutions': Your code signing/provisioning profiles are not correctly configured. Probably you have an entitlement not supported by your current provisioning profile, or your device is not part of the current provisioning profile. Please check the iOS Device Log for details (error: 0xe8008016).
アプリケーションをデバイスにアップロードできませんでした。
Why?
?デバイスが選択されたプロビジョニングプロファイルに含まれていない可能性があります的なことがエラーにでてます。
他の方のブログとかみても、だいたいXcodeでおなじプロビジョニングプロファイル作ればOKみたいになってるのに...。
いろいろやってみた。
どれをやっても結果はかわらず。そしてふとIOSプロジェクトのオプションをみてみた。
?デバイスが選択されたプロビジョニングプロファイルに含まれていない可能性があります的なことがエラーにでてます。
他の方のブログとかみても、だいたいXcodeでおなじプロビジョニングプロファイル作ればOKみたいになってるのに...。
いろいろやってみた。
- クリーンしてビルド
- Visual Studio for Macの再起動
- Xcodeの再起動
- iPhoneの再起動
- Developer CenterにてDeviceの登録
- APP idのプロビジョニングプロファイルの作成
どれをやっても結果はかわらず。そしてふとIOSプロジェクトのオプションをみてみた。
あれ、署名IDがXcodeでプロビジョニングプロファイル作ったやつと違う
w( ̄Д ̄;)wワオッ!!
仕事用にいただいてたIDになってた。
これのせい?絶対そうだね。ということでこちらの署名IDを変更していざデバッグ
やっとこうまくいきました。
Appreciation for really being thoughtful and also for deciding on certain marvelous guides most people really want to be aware of. xamarin training in Chennai
返信削除Great Article android based projects
削除Java Training in Chennai Project Center in Chennai Java Training in Chennai projects for cse The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
thanks for sharing such a nice info.I hope you will share more information like this. please keep on sharing!
返信削除xamarin training course
xamarin classes
thanks for sharing such a nice info. I hope you will share more information like this. please keep on sharing!
返信削除Sap Basis Training From India
Make money on kasino online and do not regret anything gamble casino with us Make money on kaino online and do not regret anything
返信削除Отличная led лента находится только у Ekodio, даже не сомневайтесь в этом, я лично проверял.
返信削除Excellent post for the people who really need information for this technology.
返信削除German Classes in Chennai
best german classes in chennai
IELTS Coaching in Chennai
Japanese Classes in Chennai
Data Analytics Courses in Chennai
Spoken English Classes in Chennai
German classes in anna nagar
spoken english class anna nagar
Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. After reading your article I was amazed. I know that you explain it very well. And I hope that other readers will also experience how I feel after reading your article
返信削除Data Science Training In Chennai
Data Science Online Training In Chennai
Data Science Training In Bangalore
Data Science Training In Hyderabad
Data Science Training In Coimbatore
Data Science Training
Data Science Online Training
Appreciation for really being thoughtful and also for deciding on certain marvelous guides most people really want to be aware of.keep up!!
返信削除android training in chennai
android online training in chennai
android training in bangalore
android training in hyderabad
android Training in coimbatore
android training
android online training
IT Company
返信削除IT Company
IT Company
IT Company
IT Company
IT Company
IT Company
IT Company
IT Company
返信削除IT Company
IT Company
IT Company
IT Company
IT Company
IT Company
IT Company
Very interesting blog. Many blogs I see these days do not really provide anything that attracts others, but believe me the way you interact is literally awesome.You can also check my articles as well.
返信削除360DigiTMG Data Science Course In Pune
360DigiTMG Data Science Training In Pune
Thank you..
Very interesting blog. Many blogs I see these days do not really provide anything that attracts others, but believe me the way you interact is literally awesome.You can also check my articles as well.
返信削除Data Science Course In Hyderabad
Data Science Training In Hyderabad
Best Data Science Course In Hyderabad
Thank you..
I am a new user of this site, so here I saw several articles and posts published on this site, I am more interested in some of them, hope you will provide more information on these topics in your next articles.
返信削除Business Analytics Course in Bangalore
I will very much appreciate the writer's choice for choosing this excellent article suitable for my topic. Here is a detailed description of the topic of the article that helped me the most.
返信削除Data Analytics Course in Bangalore
Attend The Data Analyst Course From ExcelR. Practical Data Analyst Course Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Analyst Course.
返信削除Data Analyst Course
wonderful article contains lot of valuable information. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
返信削除This article resolved my all queries.good luck an best wishes to the team members.continue posting.learn digital marketing use these following link
Digital Marketing Course in Chennai