iOS Question Publish app only for Ipad??

ilan

Expert
Licensed User
Longtime User
hi,

does anyone know if it is possible to publish my only for Ipads or only for iphone?
and if yes how can i do it?

thanx
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
By default B4i builds universal (iPad + iPhone / iPod) apps.

Currently it is not simple to change it but it is possible.
Close the IDE. Find the file named: project.pbxproj.template in B4i installation folder.
Edit the file and change line 240, from:
TARGETED_DEVICE_FAMILY = "1,2";
To:
TARGETED_DEVICE_FAMILY = "2";

Note that there is a similar line a few lines above so make sure to change the correct one.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Ok thanx erel.
Would be great if you could put this option in b4i setting in the next version

Until then i will do it as you wrote above

Thank you :)
 
Upvote 0

roddy

Member
Licensed User
Longtime User
Currently it is not simple to change it but it is possible.
Close the IDE. Find the file named: project.pbxproj.template in B4i installation folder.
Edit the file and change line 240, from:
TARGETED_DEVICE_FAMILY = "1,2";
To:
TARGETED_DEVICE_FAMILY = "2";

I want to my project only for iphone.
chang this line ? => TARGETED_DEVICE_FAMILY = "2"
There are other values?
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
you have two lines with TARGETED_DEVICE_FAMILY ...
change line 240 to "...= "1" (1 = Iphone, 2 = Ipads)
 
Upvote 0
D

Deleted member 103

Guest
Can this function in B4i version 1.8 are already selected by the ID?
 
Upvote 0
D

Deleted member 103

Guest
For which version you planned it?
It's just awkward and faulty manual change.

If few that were possible, it would be a great help.
B4X:
  #If Phon
       #CustomBuildAction: 1, c:\windows\system32\cmd.exe, /c copy /Y "C:\Program Files (x86)\Anywhere Software\B4i\project.pbxproj.template_iphone" "C:\Program Files (x86)\Anywhere Software\B4i\project.pbxproj.template"
   #End If

   #If Pad
       #CustomBuildAction: 1, c:\windows\system32\cmd.exe, /c copy /Y "C:\Program Files (x86)\Anywhere Software\B4i\project.pbxproj.template_ipad" "C:\Program Files (x86)\Anywhere Software\B4i\project.pbxproj.template"
   #End If
 
Upvote 0
Top