iOS Question Publish app only for Ipad??

Discussion in 'iOS Questions' started by ilan, Dec 2, 2014.

  1. ilan

    ilan Expert Licensed 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
     
  2. Erel

    Erel Administrator Staff Member Licensed 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.
     
    Ramezanpour and ilan like this.
  3. ilan

    ilan Expert Licensed 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 :)
     
  4. roddy

    roddy Member Licensed User

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

    ilan Expert Licensed User

    you have two lines with TARGETED_DEVICE_FAMILY ...
    change line 240 to "...= "1" (1 = Iphone, 2 = Ipads)
     
  6. Filippo

    Filippo Expert Licensed User

    Can this function in B4i version 1.8 are already selected by the ID?
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    It was not added in v1.8.
     
  8. Filippo

    Filippo Expert Licensed User

    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.
    Code:
    #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
     
    roddy likes this.
  9. Erel

    Erel Administrator Staff Member Licensed User

    You can post a feature request. I do not yet know which version will include this feature.
     
  10. Ramezanpour

    Ramezanpour Active Member Licensed User

    I have Hosted builder
    how can i publich only for iphone ?
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    Follow the same steps as above. It doesn't matter whether you are using a local mac or a hosted mac.
     
    Ramezanpour likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice