Hi, I need your help. Thanks in advance
Working with a MAC
XCode: 8.2.1
Previous unity version: 5.5.1f1
Current unity version: 5.6.0f3
Device: iPad mini 2
- I was working with 5.5.1f1 and i need to upgrade unity. So, I installed 5.6.0f3 the latest version.
- When I run the project for the first time, in the new unity version, it made an assets conversion.
- I run the project and it worked well.
- I built an iOS project.
- I opened Xcode and I built the project
- Xcode finished installing the app in my iPad mini 2. When it started running it crashed
It shows a memory position with Thread1: EXC_BAD_ACCESS(code=1, address=0x0)
Function 0:: CreateMaterial
Log from XCode:
2017-05-08 17:23:15.207280 APP_NAME[2035:594605] → registered mono modules 0x10135cc60
2017-05-08 17:23:15.517112 APP_NAME[2035:594605] You’ve implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add “remote-notification” to the list of your supported UIBackgroundModes in your Info.plist.
→ applicationDidFinishLaunching()
Player data archive not found at /var/containers/Bundle/Application/15B901E0-A1B5-4745-9850-7F95F90123C2/**APP_NAME**.app/Data/data.unity3d, using local filesystem2017-05-08 17:23:15.678947 APP_NAME[2035:594605] Metal GPU Frame Capture Enabled
2017-05-08 17:23:15.680392 APP_NAME[2035:594605] Metal API Validation Disabled
→ applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A7 GPU
Initialize engine version: 5.6.0f3 (497a0f351392)
APP_NAME was compiled with optimization - stepping may behave oddly; variables may not be available.
I’d recommend posting this to the iOS forum - this is a pretty platform specific issue, and more people in that forum are likely to recognize/understand it.
You may have better luck on the iOS sub forums honestly. I feel like we had this error, but I don’t deal with iOS builds. I think the notification part was important. I think the iOS guy has to add some notification thing in there in the xcode program and then there was something about notifications that he set to optional. Unfortunately, I can’t find the link to the fix atm. So, if this doesn’t make sense, as suggested, iOS forum would probably have better info.
Hi, thanks for you answer.
I added the remote-notifications in my project. But, I have a new message error
2017-05-09 09:57:55.718711 APP_NAME[2082:674092] [DYMTLInitPlatform] platform initialization successful
2017-05-09 09:57:55.869346 APP_NAME[2082:673980] → registered mono modules 0x1013ccc60
→ applicationDidFinishLaunching()
Player data archive not found at /var/containers/Bundle/Application/20F25387-5BE6-4729-82D5-1B8AFD31ECC7/**APP_NAME**.app/Data/data.unity3d, using local filesystem2017-05-09 09:57:56.127810 APP_NAME[2082:673980] Metal GPU Frame Capture Enabled
2017-05-09 09:57:56.128786 APP_NAME[2082:673980] Metal API Validation Disabled
→ applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A7 GPU
Initialize engine version: 5.6.0f3 (497a0f351392)
APP_NAME was compiled with optimization - stepping may behave oddly; variables may not be available.
(lldb)
I’ve found the issue.
It related with the Metal API
I disabled it and It works well. I’m using OpenGL 3.0
http://stackoverflow.com/questions/32221891/how-to-disable-metal-in-unity