-2

Hi I'm new in swift and I used a breakpoint because I had an error called Thread1 SIGABRT. But since I used the breakpoint, when I simulate I get a white window on the simulator and get this:

objc[5893]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x1192bf998) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x1190e1880). One of the two will be used. Which one is undefined. (lldb)

what's the meaning of this ? I don't understand. Thanks in advance

Here is the code enter image description here

vadian
  • 274,689
  • 30
  • 353
  • 361

1 Answers1

0

The warning in the console is not related to an exception error.

Instead of setting a breakpoint on a specific line set the global Exception Breakpoint

  • Press ⌘7 to go to the Breakpoint Navigator
  • Click on the + sign on bottom left and select Exception Breakpoint

    enter image description here

  • Select only Objective-C breakpoints

    enter image description here

  • Run your app

vadian
  • 274,689
  • 30
  • 353
  • 361
  • thanks for your answer. I did what you advised me but it's still the same – Mams D. Guirassy Mar 05 '17 at 18:00
  • Did you remove the custom breakpoint (drag out of the editor)? With activated exception breakpoint the execution is supposed to stop at the line where the exception occurs. And you will get more information in the stack trace. – vadian Mar 05 '17 at 18:01
  • Yes and I got this : 2017-03-05 18:59:22.929 GoApéro[6644:129095] Falling back to storing access token in NSUserDefaults because of simulator bug (lldb). I don't know how to fix it. – Mams D. Guirassy Mar 05 '17 at 18:26
  • 1
    Here are two related questions http://stackoverflow.com/questions/41047345/ios-facebook-login-access-token-error-falling-back-to-loading-access-token-fro. http://stackoverflow.com/questions/41033776/falling-back-to-loading-access-token-from-nsuserdefaults-because-of-simulator-bu found in a second using the search function – vadian Mar 05 '17 at 18:35