万年素人からHackerへの道

万年素人がHackerになれるまで殴り書きするぜ。

  • ・寄付お願いします
    YENTEN:YYzNPzdsZWqr5THWAdMrKDj7GT8ietDc2W
    BitZenny:ZfpUbVya8MWQkjjGJMjA7P9pPkqaLnwPWH
    c0ban:8KG95GXdEquNpPW8xJAJf7nn5kbimQ5wj1

flutterのiOS実機の起動

iPhoneを繋ぐ

flutter run
Launching lib/main.dart on Ss in debug mode...
═══════════════════════════════════════════════════════════════════════════════════
No valid code signing certificates were found
You can connect to your Apple Developer account by signing in with your Apple ID in Xcode
and create an iOS Development Certificate as well as a Provisioning Profile for your project by:
  1- Open the Flutter project's Xcode target with
       open ios/Runner.xcworkspace
  2- Select the 'Runner' project in the navigator then the 'Runner' target
     in the project settings
  3- In the 'General' tab, make sure a 'Development Team' is selected. You may need to
         - Log in with your Apple ID in Xcode first
         - Ensure you have a valid unique Bundle ID
         - Register your device with your Apple Developer Account
         - Let Xcode automatically provision a profile for your app
  4- Build or run your project again
  5- Trust your newly created Development Certificate on your iOS device
     via Settings > General > Device Management > [your new certificate] > Trust

For more information, please visit:
  https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html

Or run on an iOS simulator without code signing
═══════════════════════════════════════════════════════════════════════════════════
No development certificates available to code sign app for device deployment

のエラーが出る。

この言った通りにやる。

open ios/Runner.xcworkspaceXCodeを開く。

'Runner'からFlutter、Generalタブを開き「Add Account」 f:id:shinriyo:20180304215207p:plain

これを追加。 f:id:shinriyo:20180304215344p:plain

ポップアップがしつこく出るので左のボタンを押すのがいい。 f:id:shinriyo:20180304215230p:plain

失敗したら、XCodeの Product→Run f:id:shinriyo:20180304215315p:plain

右上のSlowmode?

Flutter's modes · flutter/flutter Wiki · GitHub