Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not find file #2

Closed
chashmeetsingh opened this issue May 28, 2016 · 16 comments
Closed

could not find file #2

chashmeetsingh opened this issue May 28, 2016 · 16 comments

Comments

@chashmeetsingh
Copy link

chashmeetsingh commented May 28, 2016

fatal error: Could not find the particles file: file /Users/.../XcodeProjects/...../Pods/ParticlesLoadingView/Pod/Classes/ParticlesLoadingView.swift, line 80

(lldb) @BalestraPatrick

@chashmeetsingh
Copy link
Author

chashmeetsingh commented May 28, 2016

on investigating more

Error info: EmitterNodeUnavailable Error info: EmitterNodeUnavailable fatal error: unexpectedly found nil while unwrapping an Optional value

@BalestraPatrick

@BalestraPatrick
Copy link
Owner

BalestraPatrick commented May 29, 2016

Hello, may I know how did you install it? Did you use CocoaPods? Can you please paste here your code?

The error happens when the .sks file can't be found in the bundle. If you are using a custom one, please let me know where it is located in your project.

@chashmeetsingh
Copy link
Author

I used cocoapods and didn't use any custom for loading will post the code in a moment
Thanks for replying !

@chashmeetsingh
Copy link
Author

@BalestraPatrick
Copy link
Owner

@chashmeetsingh Hey! Thanks for the bug report. I have located the issue and think I have fixed the it with the last commit b485156. Can you please run a pod install and let me know if the new version fixed the issue?

@chashmeetsingh
Copy link
Author

nope

SKTexture: Error loading image resource: "spark"

@BalestraPatrick
Copy link
Owner

BalestraPatrick commented May 29, 2016

That message appears because the particles file is trying to look for the image in the wrong directory. I fixed the issue by reassigning the correct file path by code. Unfortunately to remove that message from the console, I would have to remove the image from the particles editor but that would prevent the debugging and designing of the particles animation in the Xcode editor. Does the animation work correctly now?

@chashmeetsingh
Copy link
Author

nope still
2016-05-29 22:43:36.698 TMS-iOS[3826:87571] SKTexture: Error loading image resource: "spark"
fatal error: Could not find the particles file: file /Users/...../XcodeProjects/..../Pods/ParticlesLoadingView/Pod/Classes/ParticlesLoadingView.swift, line 80

@chashmeetsingh
Copy link
Author

also is it possible to add custom text inside the loaders or around it ? @BalestraPatrick

@BalestraPatrick
Copy link
Owner

BalestraPatrick commented May 29, 2016

I only see the warning message in my console in a new empty project that uses CocoaPods. Everything else works fine here. Can you share more details about your setup or maybe try a new empty project?

Regarding the text yes, it's possible. Take a look at the example project. You could create your own UIView class with your text and so on. Then add the animation via the addParticlesAnimation:.

@chashmeetsingh
Copy link
Author

checking again

@chashmeetsingh
Copy link
Author

chashmeetsingh commented May 29, 2016

not working @BalestraPatrick
Sample project link https://github.com/chashmeetsingh/particleLoadingViewTest

@BalestraPatrick
Copy link
Owner

BalestraPatrick commented May 29, 2016

Thanks a lot for the useful sample project! I just pushed a new version which should finally fix the issue.
Bundle directories are hard sometimes 😉

@chashmeetsingh
Copy link
Author

awesome thanks :) finally works 👍

@chashmeetsingh
Copy link
Author

removing logs?

@BalestraPatrick
Copy link
Owner

That message is not under my control. It's a warning message printed by the SpriteKit framework. I will try and see if it's possible to remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants