Test iOS app on device without apple developer program or jailbreak
Seven years after the inception of the App Store (July 10, 2008), Apple has finally introduced a new feature in Xcode 7 that allows you to deploy and run any number of apps on any of your devices, simply by logging in with your Apple ID. You will no longer need a paid Program membership to deploy apps on your own device (and you certainly no longer have to jailbreak your device if you're not comfortable doing so).
Well, not for the majority of use cases anyway. For obvious reasons, certain capabilities and entitlements that require Program membership such as Game Center and in-app purchases will not be available to apps deployed using this method. From Apple's developer documentation:
Launch Your App on Devices Using Free Provisioning (iOS, watchOS)
If you don’t join the Apple Developer Program, you can still build and run your app on your devices using free provisioning. However, the capabilities available to your app, described in Adding Capabilities, are restricted when you don’t belong to the Apple Developer Program.
The precise steps to getting your app onto your iOS device or Apple Watch follow immediately thus (screenshots omitted for ease of skimming):
In Xcode, add your Apple ID to Accounts preferences, described in Adding Your Apple ID Account in Xcode.
In the project navigator, select the project and your target to display the project editor.
Click General and choose your name from the Team pop-up menu.
Connect the device to your Mac and choose your device from the Scheme toolbar menu.
Below the Team pop-up menu, click Fix Issue.
Xcode creates a free provisioning profile for you and the warning text under the Team pop-up menu disappears.
Click the Run button.
Xcode installs the app on the device before launching the app.
Prior to Xcode 7, a Program membership was indeed required in order to sign the provisioning certificates required to deploy apps to devices. The only other alternative was jailbreaking. With Xcode 7, you no longer need to jailbreak your device just to run apps distributed outside the App Store, or to test apps if you cannot afford to join the Program, or to deploy and use apps that you have developed for your own personal use if you do not intend to distribute them through the App Store (in which case you probably don't need the entitlements offered by Program membership anyway).
Is it possible to test app on the device without developer program? [Xcode 9.4 - Code Signing Error]
I changed bundle identifier to the form of com.[myName].[AppName], then it works.
I think I can freely use any words for [myName] if it does not conflict.
I refered to
iOS 9 new feature Free Provisioning (Run your app on a device, just with your Apple ID, without Apple developer membership)
How to run apps on Real devices using Xcode 8 without enrolling to Apple's Developer Program?
You need to connect a device to Xcode and allow it to register it on your personal team. This will allow Xcode to create profiles for you (profiles cannot be created unless there is at least one device registered).
Deploying an app without Provisional Profile
Actually no way to deploy in real device without developer account and provision, certificate.
If you want to see how it works in device, just use simulator
Related Topics
Getting User Location Every N Minutes After App Goes to Background
Presentviewcontroller:Animated:Yes View Will Not Appear Until User Taps Again
How to Check If Uilabel Is Truncated
How to Load a Xib File in a Uiview
Positioning Uitabbar at the Top
iOS Universal Device App with Spritekit, How to Scale Nodes for All Views
Uitableviewcell with Dynamic Height iOS
Dynamic Height Issue for Uitableview Cells (Swift)
How to Get Uikeyboard Size with iOS
App "Does Not Contain the Correct Beta Entitlement"
How to Run/Test My Flutter App on a Real Device
No Umbrella Header Found for Target, Module Map Will Not Be Generated
Ios: Sample Code for Simultaneous Record and Playback
Get Image from Documents Directory Swift
Creating a Shadow for a Uiimageview That Has Rounded Corners
iOS 5 Twitter Framework: Tweeting Without User Input and Confirmation (Modal View Controller)