Sunday, June 19, 2016

Your binary is not optimized for iPhone 5



If you get the folowing:

Do as per pictures:



to solve the following issue.




ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone apps and app updates submitted must support the 4-inch display on iPhone 5 and must include a launch image referenced in the Info.plist under UILaunchImages with a UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the 'iOS Human Interface Guidelines' at 'https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html#//apple_ref/doc/uid/TP40006556-CH14-SW5' and the 'iOS App Programming Guide' at 'https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW12'."
ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone apps and app updates submitted must support the 4-inch display on iPhone 5 and must include a launch image referenced in the Info.plist under UILaunchImages with a UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the 'iOS Human Interface Guidelines' at 'https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html#//apple_ref/doc/uid/TP40006556-CH14-SW5' and the 'iOS App Programming Guide' at 'https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW12'."

Saturday, June 18, 2016

Nativescript {N} - build-tools/22.0.1/aapt failed with Nativescript android


If you get the following:

Error:Execution failed for task ':processNativescript-barcodescannerNativescript-telerik-uiDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/.../Library/Android/sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 2


Go to your build.gradle for your app and change from:

def computeBuildToolsVersion() {
   if(project.hasProperty("buildToolsVersion")) {
      return buildToolsVersion
   }
   else {
      return "22.0.1"   }
}

to

def computeBuildToolsVersion() {
   if(project.hasProperty("buildToolsVersion")) {
      return buildToolsVersion
   }
   else {
      return "23.0.1"   }
}

 You must install SDK buikd tool for 23.0.1 to get it work. NativeScrupt has a bug that does not work with SDK 22.0.1.