• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by waqasahmed97 · Dec 17, 2015 at 05:32 PM · iosnull referance exeption

Display Manager Null Exception on iOS build

Can't find what caused this, maybe somebody knows ? Unity 5.2.2.p3, Xcode 6.4, Mac OS El Capitan 10.11.2, iPad 3 iOS 8.1.3 I have Bad Access Error in this line of DisplayManager.mm :

  • (BOOL)displayAvailable:(UIScreen*)targetScreen; { return self[targetScreen] != nil; }

Because of NIL in the argument.

It seems when calling UnityUpdateDisplayList() method in Unity, iOs gets back null result.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Hassan-Ali · Dec 18, 2015 at 01:05 PM 0
Share

i'm facing the same problem after shifting my project to 5.3.0 and im using XCode 7.0. self is null

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Hassan-Ali · Dec 18, 2015 at 01:05 PM

Goto Build Settings of xCode and set CLANG_ENABLE_OBJC_ARC = YES, it will solve the problem.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image waqasahmed97 · Dec 20, 2015 at 09:56 AM 0
Share

Thanks @Hassan Ali this is solve my problem. If you set CLANG_ENABLE_OBJC_ARC = YES then it might cause some error related to Automatic reference counting then go to Compile Sources and add "-fno-objc-arc" as compiler flag to that file will resolve the ARC problem for specific file.

avatar image EricCN · Dec 21, 2015 at 05:06 AM 0
Share

Hi,I am a develper from china,I have the same problem as @ waqasahmed97. I try to solve it using your way,but I can not find the right place to "set CLANG_ENABLE_OBJC_ARC = YES",Can U show me detail?(Because in Build Settings of xCode, really did not konw the option of "set CLANG_ENABLE_OBJC_ARC = YES" ). I will be greatful.Watiing your Reply。

avatar image waqasahmed97 EricCN · Dec 21, 2015 at 04:44 PM 0
Share

@EricCN Goto Build setting find "Objective-C Automatic Reference Counting" and change from No to "Yes". It will helps you. :) ScreenShot

screen-shot-2015-12-21-at-94216-pm.png (45.5 kB)
avatar image EricCN waqasahmed97 · Dec 30, 2015 at 05:54 AM 0
Share

Thanks,the problem has been solved as Ur way.This is the first time that I ask question here, and very greatful for Ur detail.A great experience!

avatar image oniiholic · Apr 16, 2016 at 09:01 AM 0
Share

Thank you so much, you really save my day!!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Can't Append to Xcode with 4.6.2f1 3 Answers

Dynamically disabling Dynamic Batching on iPhone 2 Answers

Use different sprites in new Unity UI for SD vs HD 2 Answers

Developing Plugins for iOS 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges