苹果的发布版本不能安装到手机上?

08-11-2009, 12:21 AM   #1 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 96
Default Final Build !! Release or Distrubution?

My App is done!! yay

I set up my distribution provisioning profile and added it to XCode, but I am confused about what build configuration to use. The instructions on 'Distribution' tab of the Program Portal say to duplicate the Release build configuration and make some modifications, but I have seen other instructions that say to just use the Release configuration.

When I build using 'release' then it is fine.
When I build using 'Distribution' (which I created) then it gets a code signing problem. It asks me if I want to "Install and Run" the provisioning distribution provisioning profile that I created. I hit yes, and it tells me in the Organizer windows that "A Valid provisioning profile for this executable was not found". Click on the distribution profile, it tells me that "This profile cannot be installed on devices."

What am I doing wrong? Haha. I'm so close that I can taste it! I even have my screenshots ready
blueFLoyd8 is offline   Reply With Quote
Old 08-11-2009, 12:44 AM   #2 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 96
Default

The build succeeds, but the loading onto the device fails. Is this ok? haha.
blueFLoyd8 is offline   Reply With Quote
Old 08-11-2009, 03:54 AM   #3 (permalink)
Registered Member
 
Join Date: Jan 2009
Location: India
Posts: 107
Default

Quote:
Originally Posted by blueFLoyd8 View Post
The build succeeds, but the loading onto the device fails. Is this ok? haha.
ya it will not going to run on device anyway, you have to just build and take product file - compress it - ready to upload.

All the Best..!!
Jindal is offline   Reply With Quote
Old 08-11-2009, 11:57 AM   #4 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 96
Default

Quote:
Originally Posted by Jindal View Post
ya it will not going to run on device anyway, you have to just build and take product file - compress it - ready to upload.

All the Best..!!
Wow really? Why would the SDK try to launch it on the device then? Has anybody else seen this issuse?
blueFLoyd8 is offline   Reply With Quote
Old 08-11-2009, 12:41 PM   #5 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 361
Default

Quote:
Originally Posted by blueFLoyd8 View Post
Wow really? Why would the SDK try to launch it on the device then? Has anybody else seen this issuse?
You are hitting the wrong button when building. 

When you build to distribute to app store you want to select "Build" not "Build and Go." Go to the top of page to the global menu and under Build choose build. Then compress that and submit that zipped binary.

BTW, good luck!
falcon5280 is offline   Reply With Quote
Old 08-11-2009, 12:54 PM   #6 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 96
Default

Very good. Thanks.

I'm gonna submit!
blueFLoyd8 is offline   Reply With Quote
Old 08-11-2009, 12:58 PM   #7 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 361
Default

Quote:
Originally Posted by blueFLoyd8 View Post
Very good. Thanks.

I'm gonna submit!
Another one bites the dust! I hope it sells well for you.
falcon5280 is offline   Reply With Quote
Old 08-11-2009, 01:21 PM   #8 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 96
Default

So close...... 
I uploaded and get this error:
The binary you uploaded was invalid. The value provided for the key MinimumOSVersion is not acceptable.
blueFLoyd8 is offline   Reply With Quote
Old 08-11-2009, 01:24 PM   #9 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 96
Default

I built it for 3.1 (the only option in the drop down in the top left corner of xcode).

In project settings, under Base SDK I have options for 3.0 and 2.2.1.

Should I build for 2.2.1?

Last edited by blueFLoyd8; 08-11-2009 at 01:26 PM.
blueFLoyd8 is offline   Reply With Quote
Old 08-11-2009, 01:27 PM   #10 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 361
Default

Quote:
Originally Posted by blueFLoyd8 View Post
So close...... 
I uploaded and get this error:
The binary you uploaded was invalid. The value provided for the key MinimumOSVersion is not acceptable.
What do you have the SDK set to? 2.2.1/Release, 2.0/Release, 3.0/Release?
This message says you are compiling at too low a SDK setting. Is your SDK older and are you compiling below 2.0?

OK, just saw your post - yes, you are actually compiling too high actually. yes, set to 2.2.1 and let loose.
falcon5280 is offline   Reply With Quote
Old 08-11-2009, 01:39 PM   #11 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 96
Default

No luck. I tried setting it to 2.2.1 and 3.0 but neither worked and I got the same error.
blueFLoyd8 is offline   Reply With Quote
Old 08-11-2009, 01:44 PM   #12 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 361
Default

Quote:
Originally Posted by blueFLoyd8 View Post
No luck. I tried setting it to 2.2.1 and 3.0 but neither worked and I got the same error.

3.1 as far as I understand does not support all the SDKs, even if they are in the project settings. In fact 3.1 is designed to submit for 3.1 apps only. 

You should probably download the 3.0 SDk, place it in different directory, and then build with that one for 2.2.1. Then you have both SDKs on your machine.

Last edited by falcon5280; 08-11-2009 at 01:51 PM.
falcon5280 is offline   Reply With Quote
Old 08-11-2009, 01:50 PM   #13 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 361
Default

Quote:
Originally Posted by blueFLoyd8 View Post
I built it for 3.1 (the only option in the drop down in the top left corner of xcode).

In project settings, under Base SDK I have options for 3.0 and 2.2.1.

Should I build for 2.2.1?
From the program portal main page:

"iPhone SDK 3.1 beta cannot be used for submitting iPhone OS 2.2.1 or iPhone OS 3.0 applications to the App Store." 

So that is your issue.
falcon5280 is offline   Reply With Quote
Old 08-11-2009, 01:52 PM   #14 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 96
Default

I just figured that out also. I had to set the device to 3.0 and the base SDK to 3.0.

App submitted! Thanks for the help everyone!!!!! Now I have to wait 2 weeks to see if everything went well.

:nervous face:
blueFLoyd8 is offline   Reply With Quote
Old 08-11-2009, 01:54 PM   #15 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 361
Default

Quote:
Originally Posted by blueFLoyd8 View Post
I just figured that out also. I had to set the device to 3.0 and the base SDK to 3.0.

App submitted! Thanks for the help everyone!!!!! Now I have to wait 2 weeks to see if everything went well.

:nervous face:
Congrats and good luck!
falcon5280 is offline   Reply With Quote
Old 09-14-2010, 04:07 AM   #16 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 2
Default

Quote:
Originally Posted by falcon5280 View Post
You are hitting the wrong button when building. 

When you build to distribute to app store you want to select "Build" not "Build and Go." Go to the top of page to the global menu and under Build choose build. Then compress that and submit that zipped binary.

BTW, good luck!
I'm having the same problem too. 
I got stack with this problem for two days trying to fix it. When I'm using the application loader, i keep getting the this messages:

"info.plist does not contain a CFBundleResourceSpecification"
"Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate."

I was sure i already followed all the instructions correctly but still keep getting the error. Then i found out that the real culprit was the "Build and Go" button.

Now everything is working fine. I have successfully uploaded my app for review.

Just make sure when you made some changes to your configurations, do this steps:
0)Made changes to configurations (certificates, provisions, plist)
1)Save project and restart xcode
2)Open your project with all the configurations fixed and ready.
2)under Build menu choose clean all targets
3)under Build menu choose build

after successful build, then its the right time to zip your binary and upload.

Hope this helps.

Last edited by winux; 09-14-2010 at 04:09 AM.
winux is offline   Reply With Quote
Old 09-15-2010, 11:52 AM   #17 (permalink)
Super Moderator
 
Join Date: Oct 2009
Location: San Diego, CA
Posts: 1,559
Default

winux, your problem is not the same problem at all. You'd probably get more people to notice if you started your own thread with a title that explains the error you are getting.
posted @ 2011-09-13 13:18  恰个烂苹果  阅读(791)  评论(0编辑  收藏  举报