Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

salvadormg

macrumors member
Original poster
Aug 19, 2009
35
0
ok, i have two questions, i have posted on the 'official' apple developers forum but no one seems to care or want to help me. So i ask you friendly people! :apple:

Ok i am getting two different errors,

1: when i am trying to run a sound app i just made i get this error and i don't no what it means or how to fix it... (i am a total beginner...)



- (void) DidReceiveMemoryWarning; {
ERROR: DidReceiveMemoryWarning UNDECLARED (First use in this funtion)

// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];}





What am i doing wrong? i tried a few thing of what i no but can't fix it...



2: (This is my actual post from the developers forum..)

"just got signed up earlier today and i haven't left my computer since! I have my app done and i want to test it on my iPod touch! I have been through the portal, downloaded all the certs the provisioning thing and done everything the site has told me to! installed it in my keychain and on my ipod through XCode. But when i hit build and go, all i get is....




"Code Sign error: a valid provisioning profile matching the application's Identifier 'G62******B.com.m*******d.iQ******e' could not be found"





What should i do, i have tried all i can and i am very new to programming so i honestly am lost here... can anyone help me on this?"
 
1: when i am trying to run a sound app i just made i get this error and i don't no what it means or how to fix it... (i am a total beginner...)



- (void) DidReceiveMemoryWarning; {
ERROR: DidReceiveMemoryWarning UNDECLARED (First use in this funtion)

// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];}





What am i doing wrong? i tried a few thing of what i no but can't fix it...
Although the code you provided has some issues, it actually compiles fine on its own so it must be something else in your code that is referencing this method. Anyways, two issues with your method declaration:

Code:
- (void) [B][COLOR="Red"]D[/COLOR][/B]idReceiveMemoryWarning[B][COLOR="red"];[/COLOR][/B] {

1) Method names are case-sensitive; you want didReceiveMemoryWarning.
2) When defining a method's implementation (the .m side), you normally drop the semi-colon in favor of the curly braces block.
 
Thanks for the reply, i will try writhing it again tonight and see how it goes...

Any ideas on the second point? does it sound like the keychain is not the same as the Xcode prject name maybe? do they need to be identical (including case and punctuation perfect)??
 
Any ideas on the second point?
Normally I just make sure I follow all the steps for Adding Devices, Provisioning, etc from the Program Portal very closely, as well as restarting Xcode and plenty of Clean Builds if I run into issues. But, you're not alone in your issue. I believe there are plenty of other threads that may be able to help you. Do some searching and reading. :)
 
I Fixed it, AT 3 AM LAST NIGHT!!!!! :mad: god it took a long time! I rewrote the programme and bam it worked!!! Stupid programming language does that on purpose i think!!! ;)

And the second one, where i can't get my app on the ipod!!! This is really stupid but NO WHERE did they say

PLUG THE F'IN THING IN WHEN YOU GO TO SELECT THE PROFILE IN XCODE TARGET INFO!!!! AAAAAAAGGGGGGGHHHHHH :mad: Why the hell isn't that righten ANYWHERE!!!! oh well.... all fixed now, app all done and on my ipod, next, off to apple!!!

:apple::apple::apple::apple::apple::apple::apple::apple::apple::apple::apple:
 
Oh one last thing, i am making a sound App, Is it ok if the sounds WILL NOT play in the simulator, put play perfectly on my ipod????

Is this ok sending it to Apple??
 
As long as the sounds play on the device that's what matters. It's possible to use the afconvert command line app to convert sounds to the iPhone's best supported format.

// It's possible to convert to caf with:
afconvert -f caff -d LEI16@44100 MYSOUND.WAV
// this will make it single channel:
afconvert -f caff -d LEI16@44100 -c 1 MYSOUND.WAV
 
PLUG THE F'IN THING IN WHEN YOU GO TO SELECT THE PROFILE IN XCODE TARGET INFO!!!! AAAAAAAGGGGGGGHHHHHH :mad: Why the hell isn't that righten ANYWHERE!!!!
Are you saying that you wanted to be told to connect your device before you could install your app on it? How else was it supposed to end up on there? Magic?
 
Are you saying that you wanted to be told to connect your device before you could install your app on it? How else was it supposed to end up on there? Magic?

LOL no, i totally knew that!! :) I didn't mean to get the App on, i meant in Xcode when you select what profile you want in the "Targets"-"Info" plane.. But as i said it was quite stupid none the less, well, for a newbie i expected to read that or be told... hahahaha oh well... all is good now thanks! :)


As long as the sounds play on the device that's what matters. It's possible to use the afconvert command line app to convert sounds to the iPhone's best supported format.

// It's possible to convert to caf with:
afconvert -f caff -d LEI16@44100 MYSOUND.WAV
// this will make it single channel:
afconvert -f caff -d LEI16@44100 -c 1 MYSOUND.WAV


I already got a great converter that i use to change the sounds into AIFC before i put them into Xcode... But thanks..
 
...i meant in Xcode when you select what profile you want in the "Targets"-"Info" plane..
Sorry, still not picking up what you're dropping. (Maybe I'm having another blonde moment.) What is the "F'IN THING" that you are referring to and where does it need plugging? Maybe telling me the exact section/step in the Program Portal How-To that you want to be more explicit will help clear things up for me. Thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.