Comments (17)
Can you tell me more about the project? Is it a regular project? Or a workspace?
from cake.
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.
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.
Cake version?
from cake.
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.
Any info here? #49
We thought that one fixed, but could be that it's not.
from cake.
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.
Which comes from here:
from cake.
When first running Cake or creating a new project. This is the first place I hit 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:
because cakes
is empty.
from cake.
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.
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.
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.app
or 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.
Reopening. I think I probably hardcode the derives data path someplace. Not that this should matter.
from cake.
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.
I also tried to remove the Cake directory (/Users/{user}/Library/Developer/Cake) and reinstall it, also no effect
from cake.
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.
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)
- Don’t regenerate while git operations are occurring
- you can have the app think there are two cakes with same .cake directory
- Don’t show playgrounds in the cake menu
- Is it possible for project path to not be same dir as xcodeproj?
- Fill out FSWatcher
- Don’t offer to integrate Cake for SwiftPM (etc.) generated projects
- Don’t assume git HOT 2
- Default Batter deployment targets should be extracted from main project
- Clean/Rebuilds often required for changes in modules to be included
- Consider "Sources•Modules" rather than "Sources•Model" HOT 1
- I get this error: NSCocoaErrorDomain.3587 when running Cake HOT 11
- Is there a way to use cake and Cocoapods at the same time? HOT 11
- When the opened doc in Xcode is a workspace it is detected but "Integrate Cake" menu does not work
- "Update Dependencies" menu item always generates this error HOT 5
- Speed up build times HOT 1
- Not making modules of all folders.
- How to share Modules between multiple projects HOT 8
- Symlinks to dirs in Model should work
- Replacing static frameworks with swift packages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cake.