[:en]Swift: Trouble shooting[:]

[:en]ld: file too small (length=0) file

Ld /Users/Allister/Library/Developer/Xcode/DerivedData/Haze_Meter-dkjjcmjehyitmcbhkcbujnsrhwpu/Build/Products/Debug-iphonesimulator/Haze\ Meter.app/Haze\ Meter normal x86_64
cd “/Users/Allister/Documents/XCODE/Haze Meter”
export IPHONEOS_DEPLOYMENT_TARGET=8.3

Solution:
Try a full rebuild / clean. It’s possible that the a previous build has been abnormally aborted, leaving the ViewController.o file corrupted or zero-size.

To clean: In Xcode “Product” menu, select “Clean” (shortcut: Cmd+Shift+K)

To rebuild: In Xcode “Product” menu, select “Build” (shortcut: Cmd+B)

If it doesn’t work: In Xcode “Product” menu, hold down Option key, and select “Clean Build Folder”

 

Add icons for iPad

Click Attributes inspector in Images.xcassets, then select “iPad”.

iconforiPad

 

fatal error: Array index out of range

This message means index[7] is out of range[5]. Missing some elements in array.

warning: All interface orientations must be supported unless the app requires full screen.

This warning is new for iOS 9 since it supports resizable apps with multi-window support. Previously, apps would be auto-scaled to new devices which had different hardware display resolutions to those in the launch image (which is basically how iOS detects the supported interface resolutions). Now, apps which support multi-window must define the resolutions they support by including a launch image or storyboard for all device screen types.

Unless you are re-writing your app to support multi-window, you will be requiring ‘Full screen’. This is a hint to iOS that you do not support multi-window, and basically makes iOS 9 work like previous versions in this regard.

So, if you are submitting an app update for iOS 9, and you do not support multi-window, all you have to do is to go to your Project Target settings, select General, and under ‘Deployment Info’ look for the tick box called ‘Requires Full Screen’. Tick this and the warnings will disappear.

It is certainly not a bug. If this warning is present, then your app may have trouble during submission. Not sure about that, because I haven’t submitted an app with iOS 9 GM Seed yet, but I’m certainly going to tick the box 🙂

[:]

Print Friendly, PDF & Email
Scroll to Top