Giter Club home page Giter Club logo

Comments (17)

mxcl avatar mxcl commented on September 23, 2024

Can you tell me more about the project? Is it a regular project? Or a workspace?

from cake.

kaydenthomson avatar kaydenthomson commented on September 23, 2024

Both. We started trying with our workspace. When that didn't work I make a new regular project and attempted integrating. Then tried creating a project through cake. All with the same results.

from cake.

mxcl avatar mxcl commented on September 23, 2024

Funny “New Cake” doesn't work either, this is pretty much a static operation without much configuration.

I just tested both locally and it worked FYI. Must be something about your configuration I didn't expect.

from cake.

mxcl avatar mxcl commented on September 23, 2024

Cake version?

from cake.

kaydenthomson avatar kaydenthomson commented on September 23, 2024

1.0.3 with Xcode 10.2 beta 4
Every time Cake runs I get the NSCocoaErrorDomain.3587 error dialog
Are there any other steps or any environment tools/configurations I might be missing?
Stepping through the Cake code now. Haven't figured out anything yet

from cake.

mxcl avatar mxcl commented on September 23, 2024

Any info here? #49

We thought that one fixed, but could be that it's not.

from cake.

mxcl avatar mxcl commented on September 23, 2024

Here’s the main notCake throw (there's one other, but it's the same cause)

Seems unlikely there'd no Cakefile though. Could be other causes though for that throw.

from cake.

mxcl avatar mxcl commented on September 23, 2024

Which comes from here:

from cake.

kaydenthomson avatar kaydenthomson commented on September 23, 2024

When first running Cake or creating a new project. This is the first place I hit E.notCake.

let proj = try CakeProject(xcodeproj: path, toolkit: toolkit)
proj.delegate = self
cakes.append(proj)
} catch E.notCake {

I hit the E.notCake catch and the NSCocoaErrorDomain.3587 dialog kicks off.
paths from diff.added = [
"/Users/Developer/Cake/Cake.xcodeproj"
"/Users/Desktop/Bread Pudding/Bread Pudding.xcodeproj"
]

xcodePath = "/Applications/Xcode-beta.app"

Toolkit
  ▿ cakePath : Path
    - string : "/Users/Developer/Cake/DerivedData/Cake/Build/Products/Debug/Cake.app"
  ▿ xcodePath : Path
    - string : "/Applications/Xcode-beta.app"
  ▿ cakeVersion : 1.0.3-debug
    - major : 1
    - minor : 0
    - patch : 3
    ▿ prereleaseIdentifiers : 1 element
      - 0 : "debug"
    - buildMetadataIdentifiers : 0 elements
  - xcodeProductBuildVersion : "10P107d"

Nothing stands out to me as to why this is catching on line 84.

Later on, when I build the Bread Pudding project (second path above). I get the E.notCake error from:

for cake in cakes {
if cake.prefix == path {
_ = try cake.generateXcodeproj()
return
}
}
throw E.notCake(path)

because cakes is empty.

from cake.

hiroshihorie avatar hiroshihorie commented on September 23, 2024

Hello, I haven't looked into this well but when i also selected command line tools as beta the errors went away.

sudo xcode-select -s /Applications/Xcode-beta.app

from cake.

kaydenthomson avatar kaydenthomson commented on September 23, 2024

I tried that pretty early on, but got the same results. In my test above you can see the xcodePath variable is pointing to that location.
xcode-select -p prints /Applications/Xcode-beta.app/Contents/Developer

from cake.

kaydenthomson avatar kaydenthomson commented on September 23, 2024

We were able to get pass this problem with these troubleshooting steps. Some are in the guide, but not all.

swift -v swiftc -v should both print version 5.0

xcode-select -p prints /Applications/Xcode-beta.app/Contents/Developer
If not, use sudo xcode-select -s /Applications/Xcode-beta.appor wherever your Xcode 10.2+ is located.

Make sure you clear derived data. The Cake menubar item rm -rf 'Derived Data' closes Xcode and clears it. Or at least it should. You can manually delete it at /Users/{user}/Library/Developer/Xcode/DerivedData if you write at the default location, which leads me to my next point.

I found my derived data was being written to a relative path instead of the Xcode default path. Which I believe was part of my problem. Check this at option Preferences > Locations > Derived Data. I changed this setting back to Default.

At this point I was able to get the Cake to work from Xcode but not from the release version 1.0.3.

I uninstalled Cake and deleted the Cake directory found at /Users/{user}/Library/Developer/Cake

After reinstalling, opening cake, deleting Xcode derived data one more time. Things seemed to work.

Not entirely sure what happened to cause this. I'm underwhelmed with this solution. When all else fails, turn it off and back on again.

from cake.

mxcl avatar mxcl commented on September 23, 2024

Reopening. I think I probably hardcode the derives data path someplace. Not that this should matter.

from cake.

macistador avatar macistador commented on September 23, 2024

Same problem here:
I installed Cake 1.0.3, created an iOS "New Cake" project, and got this same error as @kaydenthomson "The operation couldn’t be completed. (NSCocoaErrorDomain.3587)".

Also when I build the application I also get the same error "error: The operation couldn’t be completed. (E.notCake(Path.Path(string: "/Users/mac/Desktop/Bûche de Noël")))
notice: {
}"

I removed the derived data, no effect
Tried with Xcode 10.2 or 10.2 beta, no effect
Tried to select the other Xcode version with xcode-select, no effect
I switched to Swift 5.0 with SwiftEnv, and created again a new Cake projet, no effect

Any other suggestion ?

from cake.

macistador avatar macistador commented on September 23, 2024

I also tried to remove the Cake directory (/Users/{user}/Library/Developer/Cake) and reinstall it, also no effect

from cake.

mxcl avatar mxcl commented on September 23, 2024

Sorry about these problems. I cannot reproduce locally.

The workaround is ensuring the Xcode 10.2 command line tools are installed, perhaps, does that help?

from cake.

macistador avatar macistador commented on September 23, 2024

Don't worry and thanks for your answer and for your work @mxcl :)
I don't have access right now but the command line tools should probably be installed. I will have more time to investigate tomorrow

from cake.

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.