Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Unlike Android platform that takes the resources from the concerned folders, the iOS platform needs the resources to be referenced. Therefore, the CM team needs to perform additional steps on slave 2 that are crucial to trigger the iOS build for the app.

Note

...

The folder structure mentioned in the following steps may vary depending on your project location on slave 2.


  1. Navigate to the BOA.xcodeproj file in the project folder.

    For example, Users>admin>Documents>CanvasTechnology>BOA>BOA>platforms>ios>BOA.xcodeproj

  2. Double click the BOA.xcodeproj file. A screen displays with the project details.
  3. In the left panel, click the arrow mark preceding the project name to expand the folder.

    Image Modified

    The contents of the folder display.

    Image Modified

  4. In the right panel, navigate to TARGETS>BOA>General page. In the Deployment Info section, select all the checkboxes in Device Orientation.

    Info

...

  1. Sometimes you may have to navigate to TARGETS>BOA>General page by double-clicking the project name in the left panel.

...


  1. Image Added


  2. On the General page, go to the App Icons and Launch Images section.
    1. In the App Icons Source field, select Don't Use Asset Catalog option.
    2. In the Launch Images Source field, select Don't Use Asset Catalog option.

      Info

...

    1. App Icons Source and Launch Images Source fields are toggle fields.


      Image Modified


  1. Navigate to the Build Settings page.

    Image Modified

  2. On the Build Settings page, go to the Code Signing section. Double-click on Code Signing Identity and select the distributor name from the pop-up window. The distributor name gets populated in the related sections.

    Image Modified


    Image Modified


  3. In the Code Signing section, double-click on the empty space next to Code Signing Resource Rules Path. A text box displays. In the text box, type $(SDKROOT)/ResourceRules.plist

    Click outside to close the text box.

    Note

...

  1. This step is required only for Xcode versions prior to version 8. For Xcode version 8 and above, see the note after the image.


    Image Modified

    Image Modified

    Note

...

  1. If you are using Xcode version 8 or above, you must replace a code in the PackageApplication file. Access the PackageApplication file in the path:

    • /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin

    In the PackageApplication file replace the existing code:

    Code Block
    languagetext
    my @codesign_args = ("/usr/bin/codesign", "--force",
    					 "--preserve-metadata=identifier,entitlements,resource-rules",

...

  1. 
    					 "--sign", $opt{sign},

...

  1. 
    					 "--resource-rules=$destApp/ResourceRules.plist"); 

...

  1. with the following code:

    Code Block
    languagetext
    my @codesign_args;

...

  1. 
    if (-e '$destApp/ResourceRules.plist')
    {

...

  1.   
    	@codesign_args = ("/usr/bin/codesign", "-force", 
    					  "-preserve-metadata=identifier,entitlements,resource-rules",

...

  1. 
    					  "--sign", $opt{sign},

...

  1. 
    					  "--resource-rules=$destApp/ResourceRules.plist");

...

  1. 
    }
    else
    

...

  1. 
    	@codesign_args = ("/usr/bin/codesign", "-force", 
    					  "-preserve-metadata=identifier,entitlements",

...

  1. 
    					  "--sign", $opt{sign});

...

  1. 
    }





  2. In the Code Signing section, double-click on Provisioning Profile and select the provisioning profile from the pop-up window.

    Image Modified

    Note

...

  1. The Provisioning profile interface for Xcode version 8 is different compared to previous versions. The provisioning profile fields will be available on the TARGET>Project name>General page. The sample screenshot is as follows:

    Image Modified



  2. Navigate to PROJECT>BOA>Build Settings page. In the Code Signing section repeat steps 7 to 9.

...


  1. Note

    You can ignore this step if the code signing details are populated and are same as the TARGETS>BOA>Build Settings page.


    Image Modified


  2. On the Build Settings page, in the left panel, navigate to Resources. Right-click on Resources and select Add Files to "BOA".

    Image Modified

    A dialog box displays for you to search for the required folders.

  3. Navigate to the iOS icons folder.

    The navigation path for the project BOA is depicted in the following screenshots.

    Image Modified


    Image Modified


    Image Modified


    Image Modified


  4. Click on the iOS-icons folder. Select all the files in this folder.

    Image Modified

  5. Click Add. The images are added to the Resources folder.

    Image Modified

...

  1. Note

    Ensure to replace the icons available in the Android icons folder with that of the implementation teams. The icons provided by the implementation teams must be of the same size and name as those available in the Android icons folder.