HelpDesk

HelpDesk Support System

DTRadio - Online Radio, Podcasts & Live Events Flutter App (iOS - Android) with admin panel

Q:

Can't Build correctly on mac

Closed public

I have been trying to build the new version on mac and some of the steps in the documentation are not working, can you please help

All Replies

Viewing 1 to 4 of total 26 topics

We’re glad we could assist you with your issue. If you're satisfied with our support, we’d appreciate it if you could leave a review on CodeCanyon.

We’ll be closing this ticket now. Thank you!

Regards,
Mr. Priyank

The issue you're encountering, specifically with the LaunchScreen.storyboardc during the storyboard linking process, is typically related to problems in the storyboard or Xcode project settings.

Here are some steps you can take to resolve this issue:

1. Clean the Project and Derived Data

The first step is to clean your project and remove the Derived Data in Xcode. This can solve many build issues caused by old cached files.

  • Clean Xcode build folder:

    • In Xcode, go to Product > Clean Build Folder (or press Cmd + Shift + K).
  • Remove Derived Data:

    1. Open Xcode.
    2. Go to Xcode > Preferences > Locations.
    3. Under Derived Data, click on the arrow icon next to the folder path to open it in Finder.
    4. Delete the contents of the Derived Data folder.
    5. Close and reopen Xcode.

2. Check the LaunchScreen.storyboard

There may be an issue with the LaunchScreen.storyboard file. To resolve this:

  1. Open Xcode.
  2. In the Project Navigator, expand the Runner project and navigate to Runner > Base.lproj > LaunchScreen.storyboard.
  3. Make sure that there are no missing or corrupted resources in your storyboard. Sometimes a reference to an image or view can be broken.
  4. Rebuild the storyboard:
    • Open the storyboard, make a small change (e.g., move a view slightly), and save the file.
    • Then undo the change, save it again, and rebuild the project.

3. Ensure the Correct Storyboard is Linked in the Project Settings

Check that your storyboard is correctly linked in the Xcode project settings:

  1. In Xcode, select your project in the Project Navigator.
  2. Select your Runner target.
  3. Go to the General tab.
  4. Under App Icons and Launch Images, make sure that LaunchScreen.storyboard is properly set as the Launch Screen File.

4. Reinstall CocoaPods (if iOS Pods are used)

If your project uses CocoaPods, reinstalling the pods can resolve issues caused by missing or outdated dependencies:

  1. Navigate to the ios directory of your Flutter project:

    cd ios
  2. Reinstall the pods:

    pod install --repo-update

5. Rebuild the Flutter Project

After cleaning and verifying everything, run the project again using the terminal:

flutter clean flutter pub get flutter build ios

Then, open the .xcworkspace file in Xcode and try building from there:

open ios/Runner.xcworkspace

6. Ensure Deployment Target Compatibility

Make sure that the deployment target of your project is compatible with the devices you're building for:

  1. In Xcode, select the Runner project in the project navigator.
  2. Under General, ensure the Deployment Target is set to at least iOS 11.0 or higher.

7. Check Build Phases

Ensure that your project’s build phases are correctly set up for linking storyboards:

  1. In Xcode, select the Runner target.
  2. Go to the Build Phases tab.
  3. Ensure that the Copy Bundle Resources phase includes LaunchScreen.storyboard.

These steps should resolve the issue with linking the LaunchScreen.storyboard. Let me know if it persists or if you encounter any other issues!

Regards,
Mr. Priyank

I have gotten the new update and some things where fixed but now i have this issue on Xcode 

/Users/myprostream/Library/Developer/Xcode/DerivedData/Runner-cjnjgxlyfpwbqdgwoqkqvhhstkyp/Build/Products/Debug-iphoneos/Runner.app/Base.lproj/LaunchScreen.storyboardc/ (for task: ["LinkStoryboards"])

Hi, Good Morning!

I hope you've found a solution to the issue mentioned above. If you're still experiencing any problems, feel free to share them with us. We're happy to assist you.

Thank you!

Regards,
Mr. Priyank

Viewing 1 to 4 of total 26 topics

Support is Online

Office hours

Monday - Friday
10:00 AM - 06:00 PM
IST (GMT +5:30)

  • Office time

    00:00:00 AM

  • Your time

    00:00:0 AM

Explore Our Support Documentation

Whether you're troubleshooting an issue or looking for step-by-step guidance, our resources are designed to empower you with the knowledge you need