· Brand new to UI/UX!

Struggling to Test My App Locally on Xcode for iOS Devices

Troubleshooting

I’ve been building my app on FlutterFlow and testing it using the web app publish feature. Now, I’m trying to test the app locally on Xcode to ensure it works properly for iOS devices. However, the process has been extremely complicated, and I keep encountering a series of errors.

The primary issues include:

• Missing or invalid Runner.xcworkspace files.

• Flutter failing to read files in the DerivedData directory.

• Xcode build failures, including Command PhaseScriptExecution failed with a nonzero exit code.

• Sandboxing permission issues when trying to read/write build-related files.

I want to test my app locally to ensure everything works smoothly on iOS devices before pushing it to the App Store.

What have you tried so far?

Here’s what I’ve tried so far:

1. Ran flutter clean, flutter pub get, and flutter build ios multiple times.

2. Deleted the DerivedData folder and allowed Xcode to regenerate it.

3. Verified the Base Configuration files in Xcode (set to Debug.xcconfig, Release.xcconfig, and Profile.xcconfig).

4. Attempted to fix PhaseScriptExecution errors by ensuring the correct Flutter scripts are configured in the Xcode Build Phases.

5. Checked and fixed permissions for the DerivedData and project directories (chmod -R 777).

6. Tried to run the app both from the terminal using flutter run and directly from Xcode.

Despite these efforts, I’m still unable to test the app on Xcode without running into new issues.

Did you check FlutterFlow's Documentation for this topic?
Yes
3
1 reply