Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12275] iOS: setting ti.facebook.appid property in tiapp.xml creates an invalid Info.plist file

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-12-10T22:21:17.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.0.2, Release 3.1.0, 2013 Sprint 02 JS, 2013 Sprint 02
ComponentsiOS
Labelsqe-3.2.3, qe-testadded
ReporterDavide Cassenti
AssigneeSabil Rahim
Created2013-01-14T03:43:38.000+0000
Updated2014-12-10T22:21:17.000+0000

Description

Problem description

When adding the property ti.facebook.appid in the tiapp.xml, the Info.plist file generated is invalid. Working fine on 2.1.4

Steps to reproduce

1. create a new Titanium app in Studio 2. add the ti.facebook.appid property in tiapp.xml:
<property name="ti.facebook.appid">1234567890</property>
3. build the app, then open build/Info.plist In the file, you can see under URL Types / Url Schemes that there is an item with value fb[Object object]; building the same app with SDK 2.1.4 shows the correct value fb1234567890.

Attachments

FileDateSize
Info.plist2014-04-07T10:30:33.000+00001907

Comments

  1. Kent Nguyen 2013-01-22

    This is a really major bug, there is no way to overwrite to overwrite the wrong generated value and hence the app which depends entirely on Facebook cannot work.
  2. Sabil Rahim 2013-01-24

    PR merged for 3_0_X branch Made forward port to master branch 30x PR https://github.com/appcelerator/titanium_mobile/pull/3745 -- merged master PR https://github.com/appcelerator/titanium_mobile/pull/3775 -- merged
  3. Sabil Rahim 2013-01-24

    Process the 3_0_X PR and making the Forward Port
  4. Olga Romero 2013-01-24

    Closing as fixed. The correct value is shown in info.plist fb1234567890 Tested and verified with: Titanium Studio, build: 3.0.1.201212181159 Titanium SDK, build: 3.0.2.v20130124094710 Titanium SDK, build: 3.1.0.v20130124094206
  5. Deepti Pandey 2014-04-07

    Reopening this ticket as: 1.info.plist file does not show ti.facebook.appid property for Mobile project with appcelerator services. 2.While this works perfectly fine for mobile project without appcelerator services. 3.This is not a regression . This issue happens with 3.2.1.GA as well as 3.2.2.GA Configuration used: OSX: 10.9.2 Xcode:5.1 acs@1.0.14 alloy@1.3.1 npm@1.3.2 titanium@3.2.3-alpha2 titanium-code-processor@1.1.1-alpha Appcelerator Studio, build: 3.2.3.201404031900 SDK: 3.2.3.v20140403105720 Device :iPod touch (v7.1)
  6. Deepti Pandey 2014-04-07

    attaching info.plist file for Mobile project with Appcelerator services.
  7. Ingo Muschenetz 2014-04-16

    Sabil, FYI. Marked as a regression.
  8. Sabil Rahim 2014-04-16

    cannot reproduce the issue. tested with latest 3_2_X (3.2.3.v2014040310572) the url scheme shows up correctly
       			<key>CFBundleURLSchemes</key>
       			<array>
       				<string>testproj3</string>
       				<string>fb1234567890</string>
       			</array>
       
  9. Priya Agarwal 2014-06-20

    Reopening this ticket as: This issue is reproducible when project is enabled with appcelerator services. While this works perfectly fine for mobile project without appcelerator services. Configuration used: Appcelerator-Studio:3.3.0.201406171619 Sdk:3.3.0.v20140619164112 acs:1.0.14 alloy:1.4.0-rc npm:1.3.2 titanium:3.3.0-rc titanium-code-processor:1.1.1 xcode:5.1.1 OS:Maverick(10.9.3) Result: Unable to get expected facebook app id in info.plist.
  10. Samuel Dowse 2014-06-24

    Tested on: Mac OSX 10.9.3 Appcelerator Studio, build: 3.3.0.201406231625 Titanium SDK, build: 3.3.0.v20140623161712 Titanium CLI, build: 3.3.0-rc2 Alloy: 1.4.0-rc2 Followed test steps in description. Facebook appid property is added to the info.plist of an app that is both built for development and packaged for the store. +Extra Information+ Snippet from the info.plist
        <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
        <plist version="1.0">
            <string>fb1234567890</string>
        </plist>
        
  11. Ingo Muschenetz 2014-06-24

    Re-resolving based on latest information.
  12. Olga Romero 2014-10-06

    Tested and verified the fix using Mac osx 10.9.5 Mavericks Appcelerator Studio, build: 3.4.0.201409261245 Titanium SDK, build: 3.4.1.v20141003114920 acs@1.0.18 alloy 1.5.1 install@0.1.7 npm@1.4.23 sudo@1.0.3 titanium 3.4.0 titanium-code-processor@1.1.1 Xcode6.1GM info.plist
        <array>
        		<string>jon</string>
        		<string>fb1234567890</string>
        </array>
        

JSON Source