Questions tagged [xcode9]

This tag should only be used for questions specific to the usage and features of Xcode 9. Do not use this tag just because you are using Xcode to develop your app. General Xcode questions should use the non-version specific xcode tag. Use tags appropriate for the OS such as ios or macos.

Xcode is the complete developer toolset used to create apps for Apple TV, Apple Watch, iPad, iPhone, and Mac. The Xcode development environment bundles the Instruments analysis tool, Simulator, and the OS frameworks in the form of tvOS SDKs, watchOS SDKs, iOS SDKs, and macOS SDKs.

1766 questions
10
votes
2 answers

How to remove iOS 11 search bar from view and update UI

In xcode 9 when I put the search bar in view its moves the rest of the UI down automatically. When I try to remove the searchbar from view I get a black space instead of the UI being corrected. The line I am using is:…
10
votes
1 answer

Intermittent and late Significant Location change events on apps built with Xcode 9 for iOS 11 devices

I have filed a radar on this already but I wanted to see if anyone else had this issue. It appears as though significant location changes (SLCs) are behaving differently on iOS 11 but only on apps that are built on Xcode 9. It appears as though SLCs…
Omniwheel
  • 111
  • 4
10
votes
3 answers

Memory profiling doesn't work with Xcode, just displays "No Selection"

I am using the latest version of Xcode 9 and macOS 10.13. When I try to make a memory graph from the current state of my application, it shows an empty screen that says No Selection. I also tried to profile and work with Instruments, but it did not…
Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223
10
votes
1 answer

NSUnknownKeyException : was sent to an object that is not KVC-compliant for the "player" property

I have updated my code to swift 4 in Xcode 9. Before that it was working fine. But now AVplayer is crashing at observers below is the code where it is crashing. addObserver(self, forKeyPath: "player.currentItem.duration", options: [.new, .initial],…
Shuja Ud Din
  • 434
  • 5
  • 17
10
votes
3 answers

ios 11 navigation bar overlap status bar

In ios 11 navigation bar is overlapping status bar. If any body faced the same issue kindly help.
Ashish
  • 1,899
  • 20
  • 22
10
votes
2 answers

Xcode 9 throws errors involving 'require'

When upgrading code to build under Xcode 9, I see compile errors in code using require and require_noerr: require(length > offsetof(struct blob, cert), outLabel); The first error is: error: implicit declaration of function 'require' is invalid…
Danny Parker
  • 1,713
  • 18
  • 30
10
votes
1 answer

iPhone X full screen issue

Today I've installed Xcode 9 and build my app for iPhone x. but the upper and bottom area showing black like the scenarios we met couple of years ago for iPhone 5 when screen switched to 3.5 to 4. How simply we can fix this problem?
Sunil Targe
  • 7,251
  • 5
  • 49
  • 80
10
votes
7 answers

Xcode 9 GM - Export and Upload to App Store crashing

I'm trying to upload my app that uses ARKit (Unity build) to iTunes Connect for TestFlight distribution. While both exporting and uploading to app store processes from Xcode -> Organizer I see crash on "Stripping extended attributes for…
Wojciech Rutkowski
  • 11,299
  • 2
  • 18
  • 22
10
votes
3 answers

Value of type 'AVCapturePhotoSettings' has no member 'availablePreviewPhotoPixelFormatTypes

@objc func launchCoreML() { let settings = AVCapturePhotoSettings() let previewPixelType = settings.availablePreviewPhotoPixelFormatTypes.first let previewFormat = [ kCVPixelBufferPixelFormatTypeKey as String: previewPixelType, …
LogicFlow
  • 103
  • 1
  • 7
10
votes
1 answer

iOS: Migration (Upgrade) from Swift 3 to Swift 4

Recent major update in iOS application development tool Xcode 9 supports Swift 3.2 & 4 programming language. I've my app developed with Swift 3 version and I want to convert/migrate, complete source code from Swift 3 to Swift 4. During migration,…
Krunal
  • 77,632
  • 48
  • 245
  • 261
9
votes
7 answers

Xcode 10 storyboard UI components are not visible and painfully slow?

My code was working fine (showing UI properly) when I had Xcode 9 and I removed it from the application folder (could not update as it had installed using another apple id) and reinstall the Xcode 10 from the Appstore. Now Xcode storyboard not…
happycoder
  • 927
  • 3
  • 13
  • 28
9
votes
3 answers

How can I show C++ code documentation in Xcode 9.3?

I´m developing software based on C++ in Xcode and want to have (at least) the same convenience for code documentation as if I was developing for Swift or objc. Example: std::string myString("hello"); if (myString.empty()) { // do…
stk
  • 6,311
  • 11
  • 42
  • 58
9
votes
0 answers

Error handling for URLSession.shared.datatask

I have a function that queries an API and then populates an array of objects based on the results(see code below). From the JSON retrieved I can use guard statements to catch any error meaning that if data is ever missing it is captured however if…
Conor
  • 736
  • 1
  • 13
  • 33
9
votes
4 answers

In XCUITests, how to wait for existence of either of two ui elements

Looking at XCTWaiter().wait(...) I believe we can wait for multiple expectations to become true using this code let notHittablePredicate = NSPredicate(format: "hittable == false") let myExpectation = XCTNSPredicateExpectation(predicate:…
Hasaan Ali
  • 1,192
  • 16
  • 22
9
votes
1 answer

Xcode - Instruments: missing symbols

I am profiling my WatchKit extension app with time profiler but the trace is unsymbolicated: I mean that these are all extraneous symbols for me and I can't find my methods names. If I click on any of these symbols I can see assembly code. How do…
Ramy Al Zuhouri
  • 21,580
  • 26
  • 105
  • 187