Create iOS Framework Release Build with Generic/Actual iOS Device

ios
github
circle.yml
xcodebuild
simulator

#1

Our project is iOS Framework and in order to create an automated process where committing code on Github, create/update our final product (which is iOS framework) we have created circle.yml.

But we are facing an issue, when CircleCI 1.0 build project with Generic iOS device (-destination generic/platform=iOS) it responds with below error :

xcodebuild: error: Failed to build project VideoCaptureSDK with scheme VideoCaptureSDK.
Reason: A build only device cannot be used to run this target.

then we tried with a random device name (to replicate actual iOS device scenario) but that didn’t work as well

xcodebuild: error: Unable to find a destination matching the provided destination specifier:
 		{ platform:iOS, name:iPhone 8 }

Available destinations for the "VideoCaptureSDK" scheme:
		{ platform:iOS Simulator, id:B2F3EF3D-81B5-4D52-9918-E836E5098D66, OS:11.0, name:iPhone 7 }
		{ platform:iOS Simulator, id:F541DAC7-62EE-49F8-9A82-66A9C2406B54, OS:10.3.1, name:iPhone 7 Plus }
		{ platform:iOS Simulator, id:8D676595-AE16-4B71-85C8-0B53474E6B01, OS:11.0, name:iPhone 7 Plus }
		{ platform:iOS Simulator, id:135FB206-3410-49BA-8517-B5ADB8469359, OS:11.0, name:iPhone 8 }
		{ platform:iOS Simulator, id:8A5BC89A-1386-4835-BE1F-94F842229989, OS:11.0, name:iPhone 8 Plus }
		{ platform:iOS Simulator, id:A9223EDC-4D93-4AD9-9130-7CE79C4CFDF2, OS:10.3.1, name:iPhone SE }
		{ platform:iOS Simulator, id:66C2A61A-D16C-4B7D-B1B0-7F73C4FBB4E8, OS:11.0, name:iPhone SE }
		{ platform:iOS Simulator, id:A00FE916-1646-4FB4-A31A-4BAD8C4B5022, OS:11.0, name:iPhone X }

Creating build with Simulator works only on iOS Simulator and we can not use that.

We even tried with multiple -destination but failed.

So what we are looking for is, how can we build with Actual/Generic iOS device on CircleCI 1.0 and NOT WITH A SIMULATOR


#2