I am trying to run my project on iphoneX. I have already updated my safe area layout guide but still, I am getting black bars on top and bottom. I tried all the possible ways which I know. I have also tried copy and paste my view controller to new xcode project and I found it working perfectly on new project.
Asked
Active
Viewed 54 times
-1
-
1What are you using a Launch screen or images? – apetrov Jul 06 '18 at 11:01
-
I am using launch Image. – Pulkit Jul 06 '18 at 11:05
-
1You need to add launch image for iPhone X resolution. – apetrov Jul 06 '18 at 11:11
-
1Now, I switched to launch screen and its working perfectly. Thanks, for the hint. – Pulkit Jul 06 '18 at 11:16
2 Answers
3
if you want to use launch image then in Assets you have to select iOS 8.0 and later you can see below image

chandra1234
- 357
- 6
- 15
0
Check Project -> Build Setting -> Architectures -> Valid Architectures
are included arm64 armv7 armv7s
?

KTang
- 340
- 1
- 17