I am currently in process of developing my app and haven't enrolled into App developer program. Though have mac, created apple id and developing my app with simulator. Question:
I have created a starter app and was able to build successfully with XCode (IDE) but while building the same with xcodebuild -target -sdk iphoneos -configuration debug I was getting
Code Sign error: No matching codesigning identity found: No codesigning identities (ie certificate and private key pairs) matching “XXXXXX” were found. CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'*
And then I changed "Code signing identity" and updated with "Don't code sign"
Now I am only getting
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'*
Any idea how to fix this?
In order to build for the device you need pay $99 to enroll in the iOS developer program. Without doing that you can only compile for the simulator
So the two issues are that you are telling it to build for device with -sdk iphoneOS there should be a different parameter you can pass for that flag which will represent the simulator.
You can also help guide it by adding the -destination flag and telling it you want to build with the intention of the simulator.
This information can be found on the xcodebuild manual page
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.