Comments (2)
It doesn't crash because of theos. It crashes because of your faulty code.
MPMediaQuery
is not meant to be initialized by yourself. You should get an existing query using one of its class methods documented at its class reference. Since you mean to get all songs, I'd go with calling +[MPMediaQuery songsQuery]
.
Now, why does it crash? [everything items]
probably returns an empty or nil
array, which you crash when trying to iterate through.
Now, just to end, here's a motto for you: INCLUDING FILES DOES NOT CHANGE YOUR RUNTIME BEHAVIOR, BUT YOUR COMPILING BEHAVIOUR.
If I misunderstood your question and am giving a complete out of context answer, please let me know. :P
-- theiostream.
from theos.
Due to the lack of response and this question not being related to theos in any way: Even though this one might have not been completely been solved for the asker, it doesn't belong here anymore.
from theos.
Related Issues (20)
- [Bug]: Non-Apple clang doesn't have proper Module support and should be disabled HOT 14
- [Bug]: Importing a module with a Module-Swift.h fails to compile by default in C++
- [Bug]: Xcode Project's Make File is throwing 'xcodebuild: error: “InstallationBuildProductsLocation” couldn’t be moved' HOT 4
- Add C++ makefile flags support. HOT 22
- [Bug]: FILES += <Source Files> Not Compiling <Source Files> HOT 1
- [Bug]: HOT 4
- [Bug]: Command Line Tools built by Xcode do not stage properly HOT 1
- [Bug]: HOT 2
- [Bug]: fix is the new update HOT 2
- [Bug]: Stage contains empty directories when building for rootless HOT 21
- [Bug]: Swift - error: unable to load standard library for target HOT 18
- [Bug]: NeXTSTEP plist format doesn't work with FINALPACKAGE=1 HOT 5
- Test
- [Bug]: Theos isn't finding libz3 HOT 2
- [Bug]: Unable to locate package error on Garuda Linux HOT 4
- [Bug]: Orion Build fails HOT 1
- [FYI]: `-Wnomodule-import-in-extern-c` CCFLAGS is required for Xcode 15 HOT 5
- [Bug]: Can't complie Swift application on iOS HOT 3
- 报错443 HOT 3
- [Bug]: Can't include other makefile in `Makefile` HOT 1
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 theos.