My company\'s iOS framework is meant to work on a real iOS device. Said framework is currently generated as an additional target within a Xcode project which also generates
I too struggled with the same issue. I had a series of cocoapods that were used as source pods, but needed to be converted into binary pods. Between lots of googling, trial and error and hacking, I came up with a script that I have had great success with. It is based on the scripts you see here, but refactored into functions and some debugging output (that goes into the logs in /tmp) when something is missing.
That script can be found as a github gist here: https://gist.github.com/intere/bc380fa45ccf23976d3fc297522d29a8
FWIW, I've been using Xcode 9 (9.2, then 9.3, and now 9.4).