Search Issue Tracker
Fixed in 2017.1.X
Votes
0
Found in
5.5.0f3
Issue ID
858844
Regression
No
[Xcode] UnityView.h header for iOS player cannot be included from Objective-C code
Steps to reproduce:
1. Build an empty project for iOS platform
2. Open the project with Xcode
3. Create an Objective-C file
4. Paste this line inside the file:
#import "UnityView.h"
5. Build the project
Result: semantic and parse issues are displayed
iPhone_Sensors.h:13:1: Unknown type name 'class'; did you mean 'Class'?
iPhone_Sensors.h:13:22: Expected ';' after top level declarator
Reproduced on: Unity 5.5.2p2, 5.6.0f1, 2017.1.0a3
Reproduced with: Xcode 8.3 beta
Workaround: In UnityView.h file, remove the following line:
#include "iPhone_Sensors.h"
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Red spots appear when Blending Lighting Scenarios using Adaptive Probe Volumes
- [Windows] About Unity Window needs to be opened twice to adapt to resolution
- NullReferenceException and temporary graph corruption after entering playmode if output node connection was changed
- Sprite Renderer with Animation does not reflect Sprite changes in the Scene when switching Mask Interaction
- User is redirected to a non-existing online documentation link when clicking on "?" help button inside Inspector window while Animator Override Controller is selected
Add comment