Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.4'

659 Views Asked by At

I'm new to swift and developed simple program. It can run smoothly with build-in simulator.

When I'm trying to deploy to real device, it got "Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.4'".

I found some reference that auto signing and already set up my Apple ID as a developer account. (not enrolled to apple developer (paid) account yet)

I updated both devices to latest version. Actually looking for manual signing provision profile by logging in my developer account and also not found.

May I know, is there any way to resolve, please ?

Thanks a lot in advance.

Account Screen

Team Screen

3

There are 3 best solutions below

0
On BEST ANSWER

Finally I can deployed my simple apps to my iPhone last night.

1) I used latest iOS and Xcode version 2) Sign in to my iTune account (at first I ignored and not sign in) 3) cleaned all my previous cert. 4) check Bundle Identifier unique (not duplicate with others) 5) Team - chose personal under my account

Then, all red color error in project setting should cleared.

Finally select my device in emulator list and run Xcode.

If "Could not launch .. select your Developer App Cert. to trust it" occur, Select your Developer ID under [Settings > General > Profiles and Device Management] in your iphone setting and Trust it. That's it !!

So cooolll !! :D

4
On

First of all, login in Xcode -> Preferences... -> Accounts, then go to general section of your target enter image description here

there you will find "Automatically manage signing" option, select it. Then select "Team" it will be "Your Name (Personal Team)" and wait while Xcode will create everything for you. If for some reason Xcode fails - change bundle identifier and press enter - it will force Xcode to regenerate profiles for a new id. And... one more thing) - you will need to allow iOS to launch the app, because it will complain for untrusted developer. After installing the app, go to Settings -> General -> Profiles, then select yours and press "Trust"

Tip: spend some time and investigate how to manage signing manually. It is very important for iOS developer to understand it

2
On

My issue was that somehow I selected the connected iPhone in the list of simulators:

enter image description here

Selecting an iOS Simulator resolved this.

enter image description here