Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Iphone 6 plus Simulator work OK Except for Device

I use Xcode 6.3.2 and Unity 5.1.1f1 on my mac mini. Unfortunately, I keep getting the following error message:"dyld`dyld_fatal_error" in XCode, if I try to run the app on the Iphone6 plus device, then app just crashed. The build is always succesful.

xcode 6.3 message:
**1**、dyld`dyld_fatal_error:
   -> 0x1200b9088 <+0>: brk  #0x3   Thread 1: EXC_BREAKPOINT(code=1, subcode=0x1200b9088)

2、

0 dyld_fatal_error
  1  dyld::halt(char const*)
  2  dyld::fastBindLazySymbol(ImageLoader*, unsigned long)
  3  dyld_stub_binder
  4  ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&)
  .
  .
  .
  .
  .
  11 _dyld_start

My Demo is very simple just content only have a cube,No various plugins!

like image 779
Vin Avatar asked Jul 01 '15 12:07

Vin


People also ask

How do I run an iOS app in iOS simulator?

When testing an app in Simulator, it is easiest to launch and run your app in Simulator directly from your Xcode project. To run your app in Simulator, choose an iOS simulator—for example, iPhone 6 Plus, iPad Air, or iPhone 6 + Apple Watch - 38mm—from the Xcode scheme pop-up menu, and click Run.

How does the device compare to the simulator?

You can't really compare device to simulator here as the simulator doesn't have any GPS hardware xcode is sending coordinates to the simulator. you assign a new alloc inited object every 30 seconds, wow, that's not really top notch code right there.

How do I add a simulator to Xcode?

To add a simulator. Choose Hardware > Device > Manage Devices. Xcode opens the Devices window. At the bottom of the left column, click the Add button (+). In the dialog that appears, enter a name in the Simulator Name text field and choose the device from the Device Type pop-up menu.

How do I open Xcode simulator on a watchOS device?

Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool > Simulator (watchOS). Simulator opens and displays the Home screen of whichever simulated device was last used.


2 Answers

Ok I had the same issue and I made it works by doing these things.

To solve "weird" issue like that, consider these step first :

  • Clean and Build. (Product > Clean - Product > Build)
  • Clean derived data. (Windows > Projects . (Select your project) > delete)

After these two steps, it still did not works for me so I switched enable bitcode off, following to a warning. So I made this :

  • Switch Enable Bitcode to "off". in the (YourAppName) Target -> Build Settings.

how to turn 'enable bitcode' off in xcode

More information about enable bitcode are available in this great answer.

like image 87
tsnkff Avatar answered Nov 11 '22 15:11

tsnkff


Clean and Build.

(Product > Clean - Product > Build)

Clean derived data.

(Windows > Projects . (Select your project) > delete)

Worked for me.

like image 42
Paul J. Adam Avatar answered Nov 11 '22 14:11

Paul J. Adam