79833329

Date: 2025-11-29 15:13:26
Score: 0.5
Natty:
Report link

A. Open the iOS project

  1. In your project root folder, open the "ios" directory.

  2. Open the .xcworkspace file (not the .xcodeproj).

  3. Xcode will open the project normally.

B. Create a new target

  1. In the left Project Navigator, click the project name at the top.

  2. You will see two sections: PROJECT and TARGETS.

  3. In the TARGETS section, click the small "+" button.

  4. Choose the same App template used by your main target.

  5. Name the new target something like "MyApp-Test".
    (You can rename it later by selecting it and pressing Enter.)

This creates a second, separate app.

C. Set a unique Bundle Identifier

  1. Select the new target.

  2. Open the "General" tab.

  3. In the Identity section, set a unique bundle identifier, for example:
    com.username.myapptest
    Every bundle ID must be unique, otherwise iOS will not allow both apps to be installed.

D. Create a separate Info.plist (you may see in Xcode just "Info")
Xcode sometimes duplicates the plist automatically (find something like MyApp-Test-Info.plist). If not:

  1. Find the original Info.plist in the navigator.

  2. Right-click → Duplicate.

  3. Rename the duplicate to something like "MyApp-Test-Info.plist".

E. Update the new MyApp-Test-Info.plist
Open the duplicated plist and update these fields:

F. Assign the new plist file to the new target

  1. Select the new target.

  2. Go to Build Settings.

  3. Scroll to the Packaging section.

  4. Set "Info.plist File" to the new file name (for example: MyApp-Test-Info.plist).
    Also verify that "Bundle Display Name" matches your chosen app name.

G. Configure Signing

  1. Select the new target.

  2. Open the Signing & Capabilities tab.

  3. Enable "Automatically manage signing".

  4. Choose your Team.

  5. Ensure that the Bundle Identifier matches the value you set in step C.

H. Building the correct target
If you use Expo, run this first in your project root:
npx expo prebuild

Then in Xcode:

  1. In the top toolbar, to the right of the Run button (and next to the device/simulator selector), open the Scheme menu.

  2. Choose the scheme that corresponds to the new target (MyApp-Test).
    This determines which target and bundle identifier Xcode will build.

I. Archive and upload

  1. In the Xcode menu: Product → Archive.

  2. When the Organizer window appears, select the new archive.

  3. Click "Distribute App".

  4. Choose "App Store Connect".

  5. Choose "Upload".

  6. Complete the upload steps.

  7. Use TestFlight app on the phone.

The new build will appear in App Store Connect under TestFlight, and because it uses a different bundle ID and display name, it installs alongside the development version without overwriting it.

This process allows both app versions (dev and test) to coexist on the same device.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Riccardo Ghibellini