Third party SDK returns incorrect value after notarizing my App - cocoa

I'm facing a pretty weird issue. I have a function GetInfoA() which returns the value processed from the SDK API. Everything is normal until the app is notarized from Xcode. The value returned from GetInfoA() will be incorrect. I have NO idea why this happened because all the other functions from the API return the correct value, which means the SDK is working properly... right?
Could anyone give me a hint on how to debug it? I'm clueless. Thanks in advance.

Update:
I found this is not notarization-related. The "archived" app has this issue and could be solved by turning off the optimization. Thanx to Why is XCode archive acting different than XCode build/run on iPhone

Related

How do I submit an XCode bug to Apple?

As a developer, I have come across a few bugs in Xcode and Swift, which don't lead to crashes, and thus don't report the errors to Apple. I'm talking about crashes of my app where the exception raised is not visible in the log (ex. wrong cast) or the error by the compiler is just wrong (calling a class func from a variable initializer).
Where do I submit these to Apple?
Examples:
https://i.imgur.com/hYBSlsX.png
https://i.imgur.com/BoNPYxr.png (while log is empty, no error whatsoever)
Apple provides some informations on their website how you can send bug reports to them. The best way is to use the Apple Bug Reporter.
How to use the bug reporter.
If you have an Apple developer account, go to http://bugreporter.apple.com and you can file your bug (with screenshots) there.
I think this is what you are looking for:
https://developer.apple.com/bug-reporting/

If I install phonegap, will I have problems with Xcode in the future?

I am an engineer but I don't have any development background. My boss gave me a Mac Mini with Xcode in it, and looks like someone sent me some source code to be used with phonegap.
So my question is, if I install (?) phonegap, will I be able to use Xcode in a normal way in the future, or is it an irreversible process that changes Xcode completely?
No, it will not affect Xcode at all. Now, you will just be able to select the phonegap application type when creating a new Xcode project if that is what you want to use.
I suggest you to have a look on that, under "Phonegap Generate" : http://savagelook.com/blog/portfolio/8-things-to-know-about-phonegap
And on that too : https://groups.google.com/forum/?fromgroups#!topic/phonegap/VE9EiD-eIrY
why So Serious,
You can user the xCode as is since the moment you intalled phonegap.
Do not panic and enjoy coding.
Thanks,
Jigar
Oh yes! If you install it you will be lost forever :D Just joking! Go on!
Nothing wrong will happen, consider take a look at the documentation before start doing things...

Run code from server n Xcode

I'm trying to build a iPhone/iPad app that can get code from my server when a button is pushed. Something like:
-(IBAction)getCode:(id)sender
{
// get code from server
}
I've researched and haven't found anything. I'm not sure if this is possible but it would be very helpful thank you.
I use RestKit. It is awesome, especially if your server is Restful. If not, you can just do get's and post's with RKClient.
See 'URL Loading System Programming Guide' from the Apple iOS 5.1 documentation.

Upgrading to Xcode 4.2 produces a lot of SudzC warnings

I'm working on an iOS App and I'm using SudzC to interface with a web service.
It works great, but under Xcode 4.0 it would give me three warnings. Two of them I was able to fix and the third I didn't figure out but I figured I'd come back to it later before my project was done.
A few weeks back I upgraded to Lion and Xcode 4.2. Now there's a whole lot more warnings on the exact same code. I've gone in and resolved some but others I'm not yet skilled enough to know how to fix. Also we modified the web service so this is code I've recently re-generated, so I don't think it's the fault of the SudzC site (I've been generating it through the website)
Has anyone else had this experience with SudzC and Xcode 4.2? Do you just ignore the warnings? Suppress them? Fix them? Is there something I'm doing right/wrong?

universal app target for iphone & ipad - 2 app error

Really would appreciate it if you can help me with something. I have searched every websites and apple documentation but cannot find an answer for the following issue I have:
I have upgraded an iphone app with the intention of having 1 universal 'target' for the iphone and ipad. The problem is that I have 2 products. i.e. Perk.app and Perk-Upgraded.app
How can I combine these to 1 or can I add a new product app that will differentiate the device (I can do that part) and then launch the relevant iphone or ipad product? (this is the part I cant do).
I have been looking at this for months... believe me im pulling my hair out.
Any help would be much appreciated.
Thanks
Wazacko
You cannot actually have two distinct apps and then launch the appropriate one. If I understand you correctly what you actually need is to be able to adapt your layout according to the device. For this purpose I used the guide here: http://www.devx.com/wireless/Article/44472
It helped me a lot.

Resources