Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to External tools

If I want "universal" iOS game [SOLVED]

Tools for ShiVa...

If I want "universal" iOS game [SOLVED]

Postby vklymenko » 10 Aug 2011, 21:08

Shiva Authoring Tool allows to create iPhone or iPad xcode project. If I want to create universal app to support both, what should I click? And if for example I've selected iPhone, which settings I should change to get it working as universal?
I've added "2" to device family list in info.plist, changed "iPhone/iPad" in xcode proj settings. Scale factor is 1.0, but currently I have some issues with not-active inputs (touchs/taps), when Im running on iPad simulator. Also where possible to set first logo image and icon for iPad? Thanks in advance!
Last edited by vklymenko on 26 Oct 2011, 16:41, edited 3 times in total.
User avatar
vklymenko
Platinum Boarder
Platinum Boarder
 
Posts: 759
Location: Europe

Re: If I want "universal" iOS game

Postby Markuzzzz » 11 Aug 2011, 07:35

http://www.nifty-inspirations.com, because simple things are hard to find!
Markuzzzz
Platinum Boarder
Platinum Boarder
 
Posts: 578
Location: Netherlands

Re: If I want "universal" iOS game

Postby vklymenko » 11 Aug 2011, 07:38

Hi Markuzzzz,
awesome! thanks! solved.
User avatar
vklymenko
Platinum Boarder
Platinum Boarder
 
Posts: 759
Location: Europe

Re: If I want "universal" iOS game [almost SOLVED]

Postby vklymenko » 16 Aug 2011, 19:18

heh, almost solved : ))

I did all steps on the link, but still have 29 errors like next:

Code: Select all
Undefined symbols for architecture i386:
  "_S3DClient_SetClientType", referenced from:
      _S3DEngine_iPhone_LoadPack in S3DEngine_Wrapper.o
  "_S3DClient_OnVirtualKeyboardValidate", referenced from:
      _S3DEngine_OnVirtualKeyboardValidate in S3DEngine_Wrapper.o
  "_S3DClient_iPhone_OnDeviceMoved", referenced from:
      _S3DEngine_iPhone_OnDeviceMoved in S3DEngine_Wrapper.o
  "_S3DClient_OnOverlayMovieStopped", referenced from:
      _S3DEngine_OnOverlayMovieStopped in S3DEngine_Wrapper.o
  "_S3DClient_SetGraphicContainer", referenced from:
      _S3DEngine_iPhone_LoadPack in S3DEngine_Wrapper.o
  "_S3DClient_SetStopOverlayMovieCallback", referenced from:
      _S3DEngine_iPhone_LoadPack in S3DEngine_Wrapper.o
  "_S3DClient_Shutdown", referenced from:


have I missed something in settings?)
User avatar
vklymenko
Platinum Boarder
Platinum Boarder
 
Posts: 759
Location: Europe

Re: If I want "universal" iOS game [almost SOLVED]

Postby vklymenko » 16 Aug 2011, 20:08

I founded similar issue:
http://www.stonetrip.com/developer/forum/viewtopic.php?f=39&t=22965&p=32551&hilit=Undefined+symbols+for+architecture+i386#p32551

and also building is success for iOS device, the errors appearing only on simulator build.
Hint?
User avatar
vklymenko
Platinum Boarder
Platinum Boarder
 
Posts: 759
Location: Europe

Re: If I want "universal" iOS game [almost SOLVED]

Postby Markuzzzz » 29 Aug 2011, 09:13

Did you fix it? I am having the same problem...
http://www.nifty-inspirations.com, because simple things are hard to find!
Markuzzzz
Platinum Boarder
Platinum Boarder
 
Posts: 578
Location: Netherlands

Re: If I want "universal" iOS game [almost SOLVED]

Postby Markuzzzz » 29 Aug 2011, 09:20

It build for the device. When I start I get the Unknown class AppDelegate_iPad in Interface Builder file.

Anybody having the same issue?
http://www.nifty-inspirations.com, because simple things are hard to find!
Markuzzzz
Platinum Boarder
Platinum Boarder
 
Posts: 578
Location: Netherlands

Re: If I want "universal" iOS game [almost SOLVED]

Postby vklymenko » 29 Aug 2011, 09:28

Hi Markuzzzz,

yes, it works on devices very good. Im not sure how it works on simulator, but as far I don't need simulator I didn't try much.

what I did is:

1. downloaded latest UAT
2. created iphone xcode project
3. created ipad xcode project
4. followed steps from the link
http://www.stonetrip.com/developer/wiki/index.php?title=Apple_iOS_Devices#Building_iPhone.2FiPad_universal_applications
(everything did on iphone xcode project template with grabbing stuff from ipad's one)

--
Thanks,
Slava
User avatar
vklymenko
Platinum Boarder
Platinum Boarder
 
Posts: 759
Location: Europe

Re: If I want "universal" iOS game [almost SOLVED]

Postby Markuzzzz » 29 Aug 2011, 09:33

Ok, now it works! There was another file called MainWindow_iPad.xib, but you need MainWindow_Pad.xib to get things running instead!

Thx for your reply!
http://www.nifty-inspirations.com, because simple things are hard to find!
Markuzzzz
Platinum Boarder
Platinum Boarder
 
Posts: 578
Location: Netherlands

Re: If I want "universal" iOS game [almost SOLVED]

Postby FR_dZastrX » 16 Sep 2011, 10:49

Hi :wink:

Please, I am still trying to make it works on my own side ; what do you mean by :
you need MainWindow_Pad.xib to get things running instead

* I have copy/pasted this file in the Resources folder as mentioned in the tutorial ; something more to do unmentioned ?

...On my side, I am encountering the same problem ( bunch of errors compilating for the simulator ). It seems really connected to the Other linker Flags
( cf. http://www.stonetrip.com/developer/forum/viewtopic.php?f=39&t=22845&p=37836#p37836 )

Markuzzzz, as you look like to have had this same problem as vklymenko and as everything seems to just be working fine for you right now, maybe won't you mind taking a bit of your time to give some more explanations on how you succeed, please ? :oops:
FR_dZastrX
Gold Boarder
Gold Boarder
 
Posts: 164

Re: If I want "universal" iOS game [almost SOLVED]

Postby vklymenko » 16 Sep 2011, 11:01

Hi FR_dZastrX,

it should works if to follow instructions on wikipedia,
i had issues few times just because I've skipped some steps and did as I was wanting or did it wrong, plz check everything carefuly,
for example
MainWindow_Pad.xib
MainWindow_iPad.xib
you'll find there this "i" letter - the difference
etc. plz try to follow every step from the wiki as is, exectly and write here if some step is not clear, I'll try to help ; )
User avatar
vklymenko
Platinum Boarder
Platinum Boarder
 
Posts: 759
Location: Europe

Re: If I want "universal" iOS game [almost SOLVED]

Postby gamescorpion » 05 Oct 2011, 17:09

Since no one had the step by step answer, here is the issue (as I had to figure it out on my own lol, but tried to follow through with no luck).

EDIT: I also re-did the steps with the LATEST UAT from the wiki version using the -all_load part, and that seemed to work now as well...So i guess, you should first try the wiki version with the latest UAT and see if that works, then if you still have the errors as 29 or 58 then follow the steps below for the fix that worked for me.

Before doing the below steps, the issue is basically that you dont need to put -all_load into each of the 3 items, it is only required for the first item (Other Linker Flags). When I removed it from the other 2 items (ARMv6 and ARMv7) It compiled fine with only a single warning -> "User supplied UIDeviceFamily key in the Info.plist will be overwritten..."

So that is what the issue was in a nutshell for me, so I have provided additional steps below :)

IN THE WIKI (http://www.stonetrip.com/developer/wiki/index.php?title=Apple_iOS_Devices#Building_iPhone.2FiPad_universal_applications)

The linker flag step ("- Finally, still in the same settings panel, modify the linker flags:") Makes one believe that you have to put "-all_load" infront of things. This is not the case, so I am putting a step by step of THAT step because it is VERY vauge:

1. BEFORE STARTING, MAKE SURE YOU ARE USING THE RIGHT TARGET:
(Project->Edit Active Target "YOUR_APP_NAME") in the XCode Menu called Project.

2. Click on the BUILD tab

3. FOLLOW ALL WIKI ITEMS FOR THIS PART (http://www.stonetrip.com/developer/wiki/index.php?title=Apple_iOS_Devices#Building_iPhone.2FiPad_universal_applications)

4. FOR DOING THE LINKER STEPS:
a. Select the field "Other Linker Flags" and then at the bottom left of the window you will see a circle/gear icon button for settings. Click on it and select "Add Build Setting Condition".
b. Now you will see Any SDK and Any Architecture, change the "Any Architecture" part to ARMv6.
c. Double click on the empty text box next to it and you will see a new window come up. Click on the + sign below and add the following: S3DClient_iPhone.a
d. Hit OK
e. Click again on "Other Linker Flags"
f. Select the circle/gear button from the bottom left again
g. Select "Add Build Setting Condition" again
h. A second field will appear, this time change the Any Architecture part to ARMv7
i. Double click on the empty field next to it and again the window will pop up
j. Click the + and put in S3DClient_iPad.a
k. Hit OK
l. Double click on the empty box next to "Other Linker Flags"
m. Again the window will pop up. Hit the + button
n. This time add: -all_load
o. MAKE SURE YOU HAVE THE MINUS/DASH
p. DID YOU MAKE SURE?
q. Hit ok
r. YOU CAN NOW CLOSE THE WINDOW, You are done that step


THIS IS WHAT EVERYONE KEEPS MISSING and it causes 29 errors x 2 so 58 errors for no reason LOL

Nav
Game Scorpion Inc. http://www.gamescorpion.com
MY KICKSTARTER PROJECT ARMIES OF RIDDLE - NOW LIVE (SEP/OCT 2014):
https://www.kickstarter.com/projects/617242070/mobile-and-physical-fantasy-card-rpg-game-ios-and
User avatar
gamescorpion
Platinum Boarder
Platinum Boarder
 
Posts: 667
Location: Ontario, Canada

Re: If I want "universal" iOS game [SOLVED]

Postby vklymenko » 26 Oct 2011, 16:45

I figured out that its much easier with latest xcode (4.0.2).
Just:
1). create iPhone project from shiva tools (UAT),
2). change to "universal" on first page of settings when you clicked on tree's root.
3). select "yes"
4). copy/paste .xib (with replacing) from iPad's project to "../Resources/iPad/"
and be sure that there is "armv6/armv7" in both archs and available archs.
It works on devices as universal build.
User avatar
vklymenko
Platinum Boarder
Platinum Boarder
 
Posts: 759
Location: Europe

Re: If I want "universal" iOS game [SOLVED]

Postby makkar » 09 May 2012, 16:40

Is it normal that universal apps will not start in the iPhone simulator?
User avatar
makkar
Platinum Boarder
Platinum Boarder
 
Posts: 1518

Re: If I want "universal" iOS game [SOLVED]

Postby vklymenko » 09 May 2012, 16:43

nope, should works : )
User avatar
vklymenko
Platinum Boarder
Platinum Boarder
 
Posts: 759
Location: Europe

Next

Return to External tools