Strange orientation problem with adbanner on device since Xcode 4.3

Hi @ all,

at the moment i am working on a game and i use cocos2d with mopub sdk as an ad provider. Everything worked with no problems since i updated Xcode this week to version 4.3 and iOS 5.1.
I use Appcode since November as my main IDE and everything was perfect till this week.
The game is in landscape mode only, adbanner size is 320x50 and the banner is placed in the middle of the view (top). Space between the banner is 80 points on the left and 80 points on the right (landscape).
Since i updated to Xcode 4.3 i have the following problem:

Open the project in Xcode 4.3 and run it:

In Simulator: perfect, position is correct. (both retina and normal display)
On my iPod 4: perfect, adbanner position is correct.

Open the project in Appcode 1.0.4 or 1.5:

In Simulator: perfect, position is correct. (both retina and normal display)
On my iPod 4: banner is placed upwards on the left border, like it should be in PORTRAIT mode!

Ok, so i thought: You dont need Xcode 4.3, i reverted to 4.2.1, switched with xcode-select and restored the project directory.
Now everything was perfect again on both Simulator and iPod in Xcode 4.2 and Appcode 1.0.4. Banner was placed like it should.

Then i upgraded to Appcode 1.5 and: Same problem as i described above!!!
XCode 4.2.1: No Problems
Appcode 1.5: Banner position wrong on device, but not in Simulator.

Ok, back to 1.0.4 and: project is now messed too.... (banner wrong on device) :-(((
Ok, restore project from backup, open with Xcode 4.2.1 and Appcode 1.0.4: EVERYTHING WORKS!

The only working combination at the moment is Xcode 4.2.1 and Appcode 1.0.4.
If i update to Xcode 4.3, i cannot use Appcode anymore :-(

Does anybody have an idea whats going on? I double-checked code and everything, but my wisdom is at the end.

Thanks in advance,

Armin

6 comments
Comment actions Permalink

Can you please file an issue at http://youtrack.jetbrains.com/issues/OC#newissue=yes
Please attach there some project with the same problem so we can debug. If you can't reproduce this problem in sample project you can attach whole your project and mark it as visible for team members only and it will not be leaked. Thanks.

0
Comment actions Permalink

It may be that AppCode 1.5 somehow changes the project files.
Please check if your pbxproj/schemes files are not modified in a wrong way.

0
Comment actions Permalink

Hi Andrey and Anton,
thanks for your quick replies :)
The only two files that changed between the messed up project and the working project are codeStyleSettings.xml and workspace.xml in the .idea folder. I have filed an issue and attached both files in working and messed up versions.
Hope this helps, if not, i will try to create a minimal project to reproduce the bug.

Greetings,

Armin

0
Comment actions Permalink

Hi!
This two files are all about IDE settings itself and can't affect your project at all. Please create some small small project containing described problem, we'll try to debug it. Thanks.

0
Comment actions Permalink

Ok, i think i solved the issue.
I built the project from scratch in Xcode 4.3, everything fine.
(Ok, fine is relative, whenever i touch Xcode i know why i try to avoid using it)
Opened in Appcode 1.5 and voila: IT WORKS!!!
Heaven knows what went wrong 2 days ago, but now i can finally work with the new version :)

Thanks for your hints guys, issue can be set to solved.

Greetings,

Armin

0
Comment actions Permalink

Armin,
before we close the issue we would like to make sure it is not an AppCode's problem.

You are saying that rebuilding the app from scratch in Xcode solves the problem, does rebuilding the app from scratch in AppCode leads to the problem again?

0

Please sign in to leave a comment.