'NSInvalidArgumentException', reason: '*** -[NSURL URLByAppendingPathComponent:isDirectory:]: component, components, or pathExtension cannot be nil.'

Hi developers i had this issue with my code.

keep in mind my deployetmend target is 7.0


2018-12-07 12:43:18.554768-0600 AppsMobileCompany[348:29924] Using UIWebView

2018-12-07 12:43:18.559472-0600 AppsMobileCompany[348:29924] [CDVTimer][console] 0.476956ms

2018-12-07 12:43:18.560049-0600 AppsMobileCompany[348:29924] [CDVTimer][handleopenurl] 0.368953ms

2018-12-07 12:43:18.566751-0600 AppsMobileCompany[348:29924] Unlimited access to network resources

2018-12-07 12:43:18.567028-0600 AppsMobileCompany[348:29924] [CDVTimer][intentandnavigationfilter] 6.735921ms

2018-12-07 12:43:18.567598-0600 AppsMobileCompany[348:29924] [CDVTimer][gesturehandler] 0.445008ms

2018-12-07 12:43:18.707866-0600 AppsMobileCompany[348:29924] Currently running release version (null)

2018-12-07 12:43:18.712362-0600 AppsMobileCompany[348:29924] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL URLByAppendingPathComponent:isDirectory:]: component, components, or pathExtension cannot be nil.'

*** First throw call stack:

(0x1da3bb3d 0x1ccc3067 0x1da3ba85 0x1e2d4aa7 0xbae05 0xbaa53 0xb18a3 0xb09ff 0x2b18bd 0x2b1cdf 0x2aee35 0xb0671 0x22c6deb7 0x22c6dad9 0x22c7405b 0x22c715bb 0x22ce1159 0x2b316d 0xafeaf 0x22cdd5c5 0x22edea4b 0x22ee3c1d 0x22ef67c5 0x22ee135b 0x1f31cc13 0x1f31cacd 0x1f31cdb7 0x1d9f7fdd 0x1d9f7b05 0x1d9f5f51 0x1d9491af 0x1d948fd1 0x22cd6e2d 0x22cd1a53 0xafaa3 0x1d1364eb)

libc++abi.dylib: terminating with uncaught exception of type NSException



I've trying to track the error but just empty tracks 😢



this is what it show

#import <UIKit/UIKit.h>


int main(int argc, char* argv[])
{
    @autoreleasepool {
        int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate"); //@"AppDelegate" with an error
        return retVal;
    }
}

Replies

Can you reproduce this when running the app from Xcode?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"