Showing posts with label tool. Show all posts
Showing posts with label tool. Show all posts

Saturday, February 13, 2021

How to run an Xcode project on an iOS device without payment for the US$99 Apple Developer account (2021)

To run an Xcode project on an iPhone/iPad without paying US$99 for Apple Developer account, this error message may happen:

Your development team has reached maximum number of registered iPhone devices.

According to StackOverflow, I got this warning because I have a previous paid account but I cannot configure it at this stage. So I register a new and free Apple Developer account. and add it to Xcode with Preferences->Accounts.

The project with Xcode 11.6 is configured as below:


After selecting the new Apple Developer account as the team and making sure that the bundle identifier is new, the deployment becomes successful!

References:

Development team has reached maximum number of registered iPhone devices (StackOverflow)

How to Test iOS App without Developer Account?

Run an Xcode project on an iOS device without US$99 Apple Developer account (Configuration for iPhone) (StudySwift)

Saturday, August 5, 2017

Run an Xcode project on an iOS device without US$99 Apple Developer account (Configuration for iPhone)

Since iOS 9, it is possible to install the app of an Xcode project to an iOS device without paying for a US$99 Apple Developer account. The steps to download the app to an iPhone/iPad are demonstrated with an iOS 10 device as below:

When press the build and run button of Xcode:

You may see a Could not launch "deviceName" dialog like this:


So follow the instruction on the Xcode dialog to select General -> Profiles & Device Management on the iOS device (iPhone/iPad).


Select the device.
Select "Trust (Apple ID)".
 Select "Trust".

Then the app should run on the iPhone / iPad.

For more information about Xcode configuration, see this:

Friday, May 13, 2016

Xcode Tip: Comment Hotkey/Shortcut

To put comment characters // in front of multiple lines in Xcode, highlight the area required and press:

[command ⌘] + [/]



This technique also works with IBM Swift Sandbox.

Related Information:

Xcode Tip: Hotkeys/Shortcuts to move multiple lines horizontally
Xcode Tip: Hotkey/Shortcut to format the indentation of multiple lines

Wednesday, May 4, 2016

Xcode Tip: Hotkeys/Shortcuts to move multiple lines horizontally

I tried to move/shift multiple lines horizontally in Xcode, but the tab key did not work. The solution is to select the lines to be moved and hit the following keys:

(command ⌘) + ( ] ) => Right / Indent

(command ⌘) + ( [ ) => Left / Un-indent



To indent a section automatically with a single (control) + (i) short cut, see Xcode Tip: A powerful hotkey/shortcut to format the indentation of multiple lines.




Related Information:

How can I indent multiple lines in xcode?
Xcode Tip: A powerful hotkey/shortcut to format the indentation of multiple lines (control) + (i)
Xcode Tip: Comment Hotkey/Shortcut

Tuesday, March 15, 2016

Xcode Tip: Screenshot for iOS/tvOS device/simulator

To capture the screen of an iPhone/iPad/Apple TV connected to a Mac or the screen of the iOS/tvOS simulator, try the following instructions:

iOS/tvOS Device

Method 1

Select Xcode -> Debug -> View Debugging -> Take Screenshot of (device name)


Method 2

Select Xcode -> Window -> Devices


Select your device -> Take Screenshot


A screenshot PNG file will be stored to the desktop.

iOS/tvOS Simulator

Select Simulator -> File -> Save Screen Shot




or hold these two keys: [Command] + [S]

A screenshot PNG file will also be stored to the desktop.

==================

iOS/tvOS Device without a Mac

If you want to make a screen capture of an iPhone/iPad without connecting to a Mac, hold the [Sleep/Wake (Power)] button and press and release the [Home] button.

An image of the device screen will be saved in Photos app.

Thursday, March 10, 2016

How to get the Bundle Identifier in Xcode

New iOS developers may be unfamiliar with the Bundle Identifier (Bundle ID). You need to know it while submitting apps to the App Store or utilizing some third party APIs, such as Facebook and Google APIs.

While creating a new Xcode project, you need to enter a product name and an organization identifier in the dialog shown below. And these two items are joined together to form the bundle ID, such as com.mycompany.UIButton.



To get the bundle ID of an existing project, select the top project item in the project navigator at the left. Then select TARGETS -> General. Then the bundle identifier is shown as below:



Here you may change the bundle ID to any form you like for a project already created.

Friday, December 11, 2015

How to Learn Swift without a Mac - IBM Swift Sandbox

Is it possible to learn the Swift programming language without a Mac or Xcode?

Now there is a simple way to learn Swift free online.

IBM Swift Sandbox has made it possible!!



Why not go to the IBM Swift Sandbox page now?

Simply write your Swift code in the left side of the page and click the Run button.
Immediately you will see the output at the right side.

This web service is with the latest 2.2 version.

References:
Official Swift Online Document
Relative posts (Swift Syntax) on this blog
Apple Releases Swift as Open Source

Saturday, October 24, 2015

Xcode shows "Build Succeeded" but iOS simulator does not run

If Xcode shows "build succeeded"



but iOS simulator is not run.

Select "Edit Scheme":

Select "Run" and check for the "Executable" option.



If "None" is selected, change it to projectName.app.