Help! Problems with NETWEBGET command and review of Apple

Previous topic - Next topic

msx

Apple phoned me :S because I have had problems several times in the process of reviewing my application, it appears that the problem comes from the line:

LEE$=NETWEBGET$("www.google.com", "/", 80, 512)

This makes the application crashes.

Does anyone know what I'm doing wrong?

MrTAToad

Should work fine.  It returns :

Code (glbasic) Select
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.co.uk/">here</A>.
</BODY></HTML>


You will to put in debug statements after each command just before and after that, as I suspect the crash is elsewhere.

msx

The rest are simple commands such as IF, ALPHAMODE, DRAWSPRITE ...

That is why I am sure that the bug comes from NETWEBGET$

MrTAToad

Will need to see if another iPhone user can try it...

It might be worth trying it on its own (and in debug mode) and see what XCode says.

msx

Tested on my iPhone with Development Certificate and it works correctly but when I upload to iTunes, they reject it because it crashes.

MrTAToad

Sounds like iTunes does something to the Application...

Kitty Hello

do you get a log of the output form apple?
Then, you could put a lot of STDOUT calls in between to see where it crashes.

They "Called" you!?

msx

This is the reason why my application was rejected.:

Quote2.2: Apps that exhibit bugs will be rejected

May 11, 2011 11:55 AM. From Apple.

2.2

We found that your app failed to launch on iPhone 4 running iOS 4.3.3, on an unsecured Wi-Fi network.

We encountered the issue when selecting the application on the Home screen - the app displayed a launch image then quit unexpectedly. This may be because iOS 4 uses a watchdog timer for applications; if an application takes too long to complete its initial startup, the operating system terminates the application.

For information about the watchdog timer, please see Technical Q&A: Application does not crash when launched from debugger but crashes when launched by user..

Another possibility could be a missing entitlement. For more information, please see the Technical Note: Resolving "0x800003A", applications not launching and "missing entitlement".

For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. Please be sure to include any symbolicated crash logs, screenshots, or steps to reproduce the issues when you submit your request. For information on how to symbolicate and read a crash log, please see Tech Note TN2151 Understanding and Analyzing iPhone OS Application Crash Reports.

To appeal this review, please submit a request to the App Review Board

I could use STDOUT as you advise me, but the problem is that it works for me correctly the app so that I would be useless, unless they notify me, that I do not think because they are very brief.

Yes, really they called me personally to my phone  :S and not only that, I have the phone number, email from Apple Developer Technical Support and the email from application review department.


Kitty Hello

Quote from: msx on 2011-May-25
This is the reason why my application was rejected.:
...I have the phone number, email from Apple Developer Technical Support and the email from application review department.

Sell that, then. XD

I "think" - it's the entitlement.plist. Are you very sure you have that in your XCode project and filled in properly?

msx

I do not use Ad-Hoc distribution so I have no such file.

Apparently, they run my application far as the point where the NETWEBGET$ command appears

Kitty Hello

You must have such a file. That's what I always implement with distributing.

Trucidare, for the rescue!!

msx

 :blink:

check the following link:

http://developer.apple.com/ios/manage/distribution/index.action

click on "Building your Application with Xcode for Distribution."

Find point 7 just below the image, you can read "App Store For Distribution, skip to Step 12. For Ad Hoc Distribution, complete the Following:"

Qube

Probably a silly idea but which version of XCode are you using? - I know there's an issue with XCode 4 iOS 4.3 with apps working fine locally but crash for Apple. This appears to be with GLB and Unity3D - Recommendations until it's sorted out are to use XCode 3.2.5 and iOS 4.2 SDK.

Another possible solution (again, assuming it's an XCode iOS 4.3 issue) is detailed here http://forum.unity3d.com/threads/83076-iOS-4.3-App-Rejected?p=578829&viewfull=1#post578829


msx

Some time ago I use XCode 3.2.5 SDK 4.2 because later versions give me many errors.

msx

Quote from: Kitty Hello on 2011-May-25
You must have such a file. That's what I always implement with distributing.

Trucidare, for the rescue!!

Could someone confirm if this is so?