GithubHelp home page GithubHelp logo

Comments (5)

serchavalos avatar serchavalos commented on June 12, 2024

Btw, after it fails the first time, I get this other error if I try to run the command yarn run ios again

➜  skolplattformen git:(main) ✗ yarn run ios
yarn run v1.22.19
$ nx run-ios

> nx run skolplattformen-app:run-ios
ENOTDIR: not a directory, rmdir '/Users/sergio/dev/skolplattformen/apps/skolplattformen-app/node_modules'

———————————————————————————————————————————————

>  NX   ERROR  Running target "skolplattformen-app:run-ios" failed

  Failed tasks:

  - skolplattformen-app:run-ios

  Hint: run the command with --verbose for more details.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Is there another command I should be running?

from skolplattformen.

kajetan-kazimierczak avatar kajetan-kazimierczak commented on June 12, 2024

Hi, I'm not very good at all the differences with the tooling, but we are building with Node 16.19.1 and Xcode 14.1.
I guess the problem may be there.

from skolplattformen.

serchavalos avatar serchavalos commented on June 12, 2024

@kajetan-kazimierczak Thanks for the reply! Are you running macOS? And if so, have you updated to Sonoma? I'm asking because I tried to downgrade to Xcode 14.3.1 but the new operating system won't allow me to execute it due to incompatibilities

from skolplattformen.

serchavalos avatar serchavalos commented on June 12, 2024

I finally managed to get it up and running.

For anyone looking for answer (or my future self suffering from amnesia), these are the steps I followed:

After that, I managed to successfully build the app but it wouldn't open the simulator after executing yarn run ios due to this other error:

success Successfully built the app
2023-11-03 13:50:54.337 xcodebuild[22691:2760548] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
info Installing "/Users/sergio/Library/Developer/Xcode/DerivedData/app-fzhernkxeiuybtcnzuuzrfpckcgv/Build/Products/Debug-iphonesimulator/app.app"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405):

To open the simulator

  • I went to XCode (v15.0.1 btw)
  • opened the file skolplattformen/apps/skolplattformen-app/ios/app.xcworkspace (btw, this is the first time I'm using XCode or even attempting to develop a mobile app)
  • and, chose from the XCode's menu Product > Destination > iPhone SE (or whichever is available)

I noticed the script running in the terminal listened to the changes coming from XCode and also from the Visual Code editor. So I confirmed everything was working by updating a string in the app and seeing the change reflected in the simulator

from skolplattformen.

kajetan-kazimierczak avatar kajetan-kazimierczak commented on June 12, 2024

Thanks for the info.

from skolplattformen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.