Airwatch App wrapping

158 views
Skip to first unread message

DVR Alarm

unread,
Jun 20, 2016, 4:50:49 PM6/20/16
to CodenameOne Discussions
our corporate Airwatch MDM solution is throwing the following error during app-wrapping when deploying the iOS version of the application.  The android version is working.  Upon research with the Info.plist file I found that the file has "CFBundleInfoDictionaryVersion" => "5.1.1", is it possible to send a build hint to use 6 or higher?

Unsupported Info.plist version: 5.1.1


Shai Almog

unread,
Jun 21, 2016, 12:07:36 AM6/21/16
to CodenameOne Discussions
Our new xcode build servers use 6.0 so they should work. You can follow our process of migrating to them in the blog.

To use them use the iphone_new target as explained here:
https://www.codenameone.com/blog/ios-server-migration-plan.html
https://www.codenameone.com/blog/ios-migration-continued.html

But follow the blog closely as we made an attempt to migrate and decided to revert it back after one day:
https://www.codenameone.com/blog/ios-migration-setback.html

DVR Alarm

unread,
Jun 21, 2016, 2:41:52 PM6/21/16
to CodenameOne Discussions
modified the build.xml and got the following error on CN1 build server

** BUILD SUCCEEDED **

Skipping application-groups entitlement
Exception: java.io.FileNotFoundException: /Users/administrator/Library/MobileDevice/Provisioning Profiles/TempProfile.mobileprovision (No such file or directory)
java.io.FileInputStream.open0(Native Method)
java.io.FileInputStream.open(FileInputStream.java:195)
java.io.FileInputStream.<init>(FileInputStream.java:138)
com.codename1.build.daemon.Executor.copy(Executor.java:1003)
com.codename1.build.daemon.IPhoneBuilder.build(IPhoneBuilder.java:1848)
com.codename1.build.daemon.Executor$5.run(Executor.java:804)

DVR Alarm

unread,
Jun 21, 2016, 4:08:35 PM6/21/16
to CodenameOne Discussions
automagically the iphone build is working again, but the original issue of CFBundleInfoDictionaryVersion being 5.1.1 is still the same


On Monday, June 20, 2016 at 4:50:49 PM UTC-4, DVR Alarm wrote:

DVR Alarm

unread,
Jun 21, 2016, 5:21:35 PM6/21/16
to CodenameOne Discussions
another build sent to CN1 builder server for iphone returned with error as below,  I am going to send another build to CN1 build server to if I get the same error back:

** BUILD SUCCEEDED **

Skipping application-groups entitlement
codesign -f -vv --entitlements /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/Entitlements5871096386660358322.plist -s iPhone Distribution: [REDACTED] /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build5322858714238130987xxx/dist/build/Release-iphoneos/[REDACTED].app
iPhone Distribution: [REDACTED]: no identity found
iPhone Distribution: [REDACTED]: no identity found
iPhone Distribution: [REDACTED]: no identity found


On Monday, June 20, 2016 at 4:50:49 PM UTC-4, DVR Alarm wrote:

DVR Alarm

unread,
Jun 21, 2016, 5:40:26 PM6/21/16
to CodenameOne Discussions
I need to hear a GOOD explanation of the differences.  Between my last two builds sent to CN1 build server nothing changed in my code, certificate, profile or build configuration. Although the latest build failed like the earlier build, but messages are completely different between last two builds for iPhone-release.  I am going to humor me by sending another build:

** BUILD SUCCEEDED **

Skipping application-groups entitlement
Exception: java.io.FileNotFoundException: /Users/administrator/Library/MobileDevice/Provisioning Profiles/TempProfile.mobileprovision (No such file or directory)
java.io.FileInputStream.open0(Native Method)
java.io.FileInputStream.open(FileInputStream.java:195)
java.io.FileInputStream.<init>(FileInputStream.java:138)
com.codename1.build.daemon.Executor.copy(Executor.java:1003)
com.codename1.build.daemon.IPhoneBuilder.build(IPhoneBuilder.java:1848)
com.codename1.build.daemon.Executor$5.run(Executor.java:804)


On Monday, June 20, 2016 at 4:50:49 PM UTC-4, DVR Alarm wrote:

DVR Alarm

unread,
Jun 21, 2016, 5:47:45 PM6/21/16
to CodenameOne Discussions
build history


On Monday, June 20, 2016 at 4:50:49 PM UTC-4, DVR Alarm wrote:
CN1_build_history.tiff

DVR Alarm

unread,
Jun 21, 2016, 5:59:06 PM6/21/16
to CodenameOne Discussions
third build failed with the following error (TOTALLY) different from last two failed builds.  I am going to build for Android now to see what happens:

ProcessProductPackaging /Users/administrator/Library/MobileDevice/Provisioning\ Profiles/TempProfile.mobileprovision build/Release-iphoneos/[REDACTED].app/embedded.mobileprovision
    cd /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7974935434196687637xxx/dist
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    builtin-productPackagingUtility /Users/administrator/Library/MobileDevice/Provisioning\ Profiles/TempProfile.mobileprovision -o /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7974935434196687637xxx/dist/build/Release-iphoneos/[REDACTED].app/embedded.mobileprovision
error: class '(null)' of input object does not respond to either selector writeToFile:options:error: or writeToFile:atomically

** BUILD FAILED **


The following build commands failed:
	ProcessProductPackaging /Users/administrator/Library/MobileDevice/Provisioning\ Profiles/TempProfile.mobileprovision build/Release-iphoneos/[REDACTED].app/embedded.mobileprovision
(1 failure)


On Monday, June 20, 2016 at 4:50:49 PM UTC-4, DVR Alarm wrote:

DVR Alarm

unread,
Jun 21, 2016, 6:05:40 PM6/21/16
to CodenameOne Discussions
Android build was a success


On Monday, June 20, 2016 at 4:50:49 PM UTC-4, DVR Alarm wrote:

DVR Alarm

unread,
Jun 21, 2016, 6:20:21 PM6/21/16
to CodenameOne Discussions
iPhone build failed for the fourth time


** BUILD SUCCEEDED **

Skipping application-groups entitlement
Exception: java.io.FileNotFoundException: /Users/administrator/Library/MobileDevice/Provisioning Profiles/TempProfile.mobileprovision (No such file or directory)
java.io.FileInputStream.open0(Native Method)
java.io.FileInputStream.open(FileInputStream.java:195)
java.io.FileInputStream.<init>(FileInputStream.java:138)
com.codename1.build.daemon.Executor.copy(Executor.java:1003)
com.codename1.build.daemon.IPhoneBuilder.build(IPhoneBuilder.java:1848)
com.codename1.build.daemon.Executor$5.run(Executor.java:804)


On Monday, June 20, 2016 at 4:50:49 PM UTC-4, DVR Alarm wrote:

Shai Almog

unread,
Jun 22, 2016, 12:37:50 AM6/22/16
to CodenameOne Discussions
Distribution builds != Development builds and you seem to send both. If you made your own certificates/provisioning then there are MANY reasons these can fail: http://www.codenameone.com/blog/ios-code-signing-fail-checklist.html

You seem to be sending builds to iphone and not to iphone_new which is probably due to the fact that you are sending distribution not debug builds and didn't edit iphone_new everywhere.

There is a possibility there are issues in the iphone_new build target as we are reworking it right now.

DVR Alarm

unread,
Jun 22, 2016, 9:52:08 AM6/22/16
to CodenameOne Discussions
Hi Shai,  last four requests at minimum were for distribution build.  Not only that, I changed the build target to use "iphone_new" for the following ant tasks.  The last successful iPhone release build from CN1 still has CFBundleInfoDictionaryVersion as 5.1.1.

build-for-ios-device
build-for-ios-device-release

Unfortunately, the route I took not originally intended for but it is my only way at this moment;  I downloaded the sources from CN1 after the successful build and compiled locally with Xcode.  I was able to generate an archive from Xcode and that has CFBundleInfoDictionaryVersion set to 6.0; of course I had to change the build settings here and there.





On Monday, June 20, 2016 at 4:50:49 PM UTC-4, DVR Alarm wrote:

DVR Alarm

unread,
Jun 22, 2016, 10:18:56 AM6/22/16
to CodenameOne Discussions
the latest iphone build was successful, the Info.plist file looks like below

{
  "CFBundleName" => "[REDACTED]"
  "DTSDKName" => "iphoneos9.3"
  "DTXcode" => "0731"
  "CFBundleIcons~ipad" => {
    "CFBundlePrimaryIcon" => {
      "CFBundleIconFiles" => [
        0 => "AppIcon29x29"
        1 => "AppIcon57x57"
        2 => "AppIcon60x60"
        3 => "AppIcon72x72"
        4 => "AppIcon76x76"
      ]
    }
  }
  "UIApplicationExitsOnSuspend" => 0
  "DTSDKBuild" => "13E230"
  "CFBundleDevelopmentRegion" => "en"
  "CFBundleVersion" => "1.0"
  "BuildMachineOSBuild" => "15F34"
  "NSMainNibFile" => "MainWindow"
  "CFBundleShortVersionString" => "1.0"
  "CFBundlePackageType" => "APPL"
  "DTPlatformName" => "iphoneos"
  "CFBundleSupportedPlatforms" => [
    0 => "iPhoneOS"
  ]
  "CFBundleInfoDictionaryVersion" => "5.1.1"
  "CFBundleExecutable" => "[REDACTED]"
  "DTCompiler" => "com.apple.compilers.llvm.clang.1_0"
  "UILaunchImages" => [
    0 => {
      "UILaunchImageSize" => "{414, 736}"
      "UILaunchImageName" => "LaunchImage-800-Portrait-736h"
      "UILaunchImageMinimumOSVersion" => "8.0"
      "UILaunchImageOrientation" => "Portrait"
    }
    1 => {
      "UILaunchImageSize" => "{414, 736}"
      "UILaunchImageName" => "LaunchImage-800-Landscape-736h"
      "UILaunchImageMinimumOSVersion" => "8.0"
      "UILaunchImageOrientation" => "Landscape"
    }
    2 => {
      "UILaunchImageSize" => "{375, 667}"
      "UILaunchImageName" => "LaunchImage-800-667h"
      "UILaunchImageMinimumOSVersion" => "8.0"
      "UILaunchImageOrientation" => "Portrait"
    }
    3 => {
      "UILaunchImageSize" => "{320, 480}"
      "UILaunchImageName" => "LaunchImage-700"
      "UILaunchImageMinimumOSVersion" => "7.0"
      "UILaunchImageOrientation" => "Portrait"
    }
    4 => {
      "UILaunchImageSize" => "{320, 568}"
      "UILaunchImageName" => "LaunchImage-700-568h"
      "UILaunchImageMinimumOSVersion" => "7.0"
      "UILaunchImageOrientation" => "Portrait"
    }
  ]
  "MinimumOSVersion" => "6.0"
  "CFBundleIdentifier" => "[REDACTED]"
  "UIPrerenderedIcon" => 1
  "UIAppFonts" => [
    0 => "material-design-font.ttf"
  ]
  "CFBundleIconFiles" => [
    0 => "Icon.png"
    1 => "Ic...@3x.png"
    2 => "Ic...@3x.png"
    3 => "Ic...@2x.png"
    4 => "Icon-72.png"
    5 => "Icon-Small-50.png"
    6 => "Icon-Small.png"
    7 => "Icon-...@2x.png"
    8 => "Icon7.png"
    9 => "Ic...@2x.png"
    10 => "Icon-76.png"
    11 => "Icon-152.png"
  ]
  "CFBundleIcons" => {
    "CFBundlePrimaryIcon" => {
      "CFBundleIconFiles" => [
        0 => "AppIcon29x29"
        1 => "AppIcon57x57"
        2 => "AppIcon60x60"
      ]
    }
  }
  "LSRequiresIPhoneOS" => 1
  "UISupportedInterfaceOrientations" => [
    0 => "UIInterfaceOrientationPortrait"
    1 => "UIInterfaceOrientationPortraitUpsideDown"
  ]
  "CFBundleDisplayName" => "[REDACTED]"
  "CFBundleSignature" => "????"
  "DTXcodeBuild" => "7D1014"
  "DTPlatformVersion" => "9.3"
  "DTPlatformBuild" => "13E230"
  "UIDeviceFamily" => [
    0 => 1
  ]

}


On Monday, June 20, 2016 at 4:50:49 PM UTC-4, DVR Alarm wrote:

DVR Alarm

unread,
Jun 22, 2016, 10:49:49 AM6/22/16
to CodenameOne Discussions
another iphone build failed right after a successful build

ProcessProductPackaging /Users/administrator/Library/MobileDevice/Provisioning\ Profiles/TempProfile.mobileprovision build/Release-iphoneos/[REDACTED].app/embedded.mobileprovision
    cd /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build427251739850254216xxx/dist
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    builtin-productPackagingUtility /Users/administrator/Library/MobileDevice/Provisioning\ Profiles/TempProfile.mobileprovision -o /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build427251739850254216xxx/dist/build/Release-iphoneos/[REDACTED].app/embedded.mobileprovision
error: class '(null)' of input object does not respond to either selector writeToFile:options:error: or writeToFile:atomically

** BUILD FAILED **


The following build commands failed:
	ProcessProductPackaging /Users/administrator/Library/MobileDevice/Provisioning\ Profiles/TempProfile.mobileprovision build/Release-iphoneos/[REDACTED].app/embedded.mobileprovision
(1 failure)


On Monday, June 20, 2016 at 4:50:49 PM UTC-4, DVR Alarm wrote:

Shai Almog

unread,
Jun 23, 2016, 1:14:06 AM6/23/16
to CodenameOne Discussions
Looking at the code I see that the 6.0 value is only set if ios.bitcode=true and it defaults to false.

That last error is exactly why we reverted the iphone_new change and returned to the older build servers. We are working on a major overhaul to the build process to circumvent that error. Hopefully it should be out by mid July.
Reply all
Reply to author
Forward
0 new messages