Search code examples
iosapportable

Unable to "apportable load". Give NoneType error


Trying to use apportable for the first time. Keep getting this error:

TypeError: 'NoneType' object is not subscriptable

and also

NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";

And then the script terminates.


Solution

  • xcode-select --switch /Applications/Xcode.app/Contents/Developer
    

    Background: This can occur if you've updated to Xcode 5. It seems Xcode 5 has a bug that it can generate incorrect output when running xcodebuild.