Sunday, June 24, 2018
Never ending fights with XCode
Never ending fights with XCode

As I indicated yesterday I need to move my infrastructure with all services to a new server and XCode showed me that Ill have some headaches to re-submit my app. And my feat turned to be valid - again.
I admit, Im not a professional iOS developer. I dont have any professional background neither in Objective-C nor with iOS/XCode. So from that side its understandable that I have difficulties. Also I have a very little low-level computer architecture knowledge. Which makes everything a bit harder. And unfortunately thats not something you can just learn from a blogpost.
The skill set you need for developing mobile apps is pretty small. A little programming, a little library knowledge and some political know-how about the submission process and ecosystem. It is scary but doable. However the problems Im facing all the time do not relate to any of those. This time I got some.
First there were problems with the linked librarys architecture. It said it couldnt find the armv7 sections in the compiled lib code. Ive been toggled back and forth between the lib and the app, recompiling them several times and varying the architecture flags. No success. After some deep research Ive found a tag in the compile params that runs the compiler agains only the existing platforms. That is solved.
Not some static headers were loaded in a wrong form. Trust me that was totally useless information for me. I was suspicious of the way I compiled the static lib - long story short, after couple of recompiling I got it right.
Then some extensions were using wrong architecture, x64 instead of i86. Okay that was fine to fix. Sort of.
Then at this point it was running in the simulator perfectly. Wanted to test it on a device and then it said that one of the entitlements was wrong. I opened the organizer, checked everything and seemed ok. On the apple provisioning portal then Ive seen that some was expired. Replacing them just made the whole situation worse. At some point I had to revoke and regenerate all. Luckily that was a clean thing to do.
And done. Application archive is valid. Ready to upload. Upload. Upload complete. Almost pouring the champagne when Ive received the error message that its missing a screenshot. It turned out it misses the 4 inch size shot. I could just leave it, but Ive checked the app on a 4 inch screen and its broken, no event handlers on button, layout is slipped. Unfortunately there is no such a flag to not to use the new large screen. So I have no other option than adding the support for iPhone 5.
I mean before it happened I just had to save and archive the app. Now its again problems after problems. And the funny thing I just had to change 1 string in the app. It really makes me think if its a convenient platform to invest in (as it costs 100 gran per year). Or how much of those issues I could solve with a proper iOS/Objective-C knowledge. I dont know.
Do you also having these migration related problems?
---
Peter