So things are going badly and there are plenty of solutions… sadly nothing that makes flutter a better project. They certainly do not release fast enough or, in my opinion, focus on the useful features that create a better user experience….
“No devices available” (iOS device on a Macbook Air)
This one was one of the first BIG problems that I fixed. In my case I had a brand new laptop and I deployed flutter according to the sensible instructions. Flutter installs with a number of tools in a cache folder. There were some useful additional tools to install like idevice_id and ideviceinfo that are needed by flutter and they can be overridden with homebrew.
To diagnose this problem… flutter doctor -v –bug-report
extract the zip file, try to locate programs like idevice_id and ideviceinfo and then try to execute them… if you receive a dyndna type error or something that looks like it could not locate the OSX equivalent of a missing DLL. Then you at the very least you can delete the flutter tools folder and reinstall. Alternatively and not-verified I have been told that deleting the bin/cache folder forces the flutter tool to reinstall the apps.
Something about “cocoapods … runner … target … customer”
After running pod install I received a warning at the end. It’s not very clear, however, in the ios folder there is a file Podfile that has a number of configs in it. Much of this information is static so be careful and save or preserve your work as the flutter tools may overwrite the default or computed config.
This particular error is because the Podfile contains a snippet at the top that sets the target. (debug, release, etc). But it also happens that xcode sets the values and so pod thinks it’s a custom configuration with an override and so you get the warning.
To correct cd to the correct folder and just launch xcode. “runner” -> “info” -> “project” -> “runner”… in the configuration tab set configurations to NONE.
Then rerun the pod install and the error should be gone.
This is a tough one because [a] it’s ruby [b] little or not docs [c] the flutter tools seem to do some overwriting.
unrelated… uncomment out this line at the set the version: platform :ios, ‘9.0’
It’s unclear but you gotta set the SWIFT_VERSION but where… put this one at the top
ENV[‘SWIFT_VERSION’] = ‘4.1’