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
17
votes
3 answers

Constrain to margin isn't working properly on Xcode

I'm trying to set a constrain of "0" to a UIImageView from the sides (left & right) but when I add the constrain with "Constrain to margin" checked, it pins the image all the way to the edge of the ViewController while it should keep some distance,…
Eihab
  • 340
  • 3
  • 13
17
votes
5 answers

Convert to Current Swift Syntax Failed - "No such module" (Swift 4, Xcode 9)

In Xcode 9, I am trying to do the automatic conversion to Swift 4. It fails with the following message: Convert to Current Swift Syntax Failed Please ensure that all selected targets build successfully with the currently configured Swift version…
Nikolay Suvandzhiev
  • 8,465
  • 6
  • 41
  • 47
17
votes
4 answers

Xcode 9 - no iOS 11 simulator

When I open up the new Xcode 9 and go to Preferences > Components I don't see an option to download iOS 11 simulators. I'm 100% sure I have the latest Xcode 9 beta 4 I did some research and found out that Xcode downloads an index to determine what…
MegaCookie
  • 5,017
  • 3
  • 21
  • 25
17
votes
6 answers

Module compiled with swift 4.0 cannot be imported in swift 3.1

Apparently I have managed to build my project in Xcode 9 beta and now I only get the error Module compiled with swift 4.0 cannot be imported in swift 3.1 When I run the project in Xcode 8. The module in my case are Alamofire. I have tried to…
user8118543
17
votes
1 answer

Xcode 5: disable single-click in navigation

So, after struggling with horrible interface choices of Xcode 4, I'm finally on 5.1.1. The tabs became almost usable. Double clicking can be configured to open a file in a new tab. Good. Double clicking another file opens it in a new tab. Good.…
Eugene
  • 7,180
  • 1
  • 29
  • 36
16
votes
3 answers

What is the meaning of: "Search tree file's format version number (0) is not supported"?

In macOS 10.13 High Sierra on Xcode 9 I get this log message: 2017-09-28 15:19:28.246511+0800 wr[5376:128702] MessageTracer: load_domain_whitelist_search_tree:73: Search tree file's format version number (0) is not supported 2017-09-28…
Simon
  • 438
  • 4
  • 14
16
votes
2 answers

Why I am getting Lazy loading NSBundle MobileCoreServices.framework?

When I redirect from main viewController to another viewController I'm getting this Error: Lazy loading NSBundle MobileCoreServices.framework, Loaded MobileCoreServices.framework, System group container for…
Naresh
  • 16,698
  • 6
  • 112
  • 113
16
votes
2 answers

Swift 4 Using KVO to listen to volume changes

I just updated to Swift 4 and Xcode 9 and got a (swiftlint) warning for the following code telling me that I should use KVO now: Warning: (Block Based KVO Violation: Prefer the new block based KVO API with keypaths when using Swift 3.2 or later.…
Eternal Black
  • 259
  • 2
  • 15
15
votes
4 answers

Invalid Toolchain. Itunes store operation failed

As soon as I updated xcode to 9.2 , I cannot validate my archived builds. I get this error message every time: Invalid Toolchain. New apps and app updates must be built with the public (GM) versions of Xcode 6 or later, macOS, and iOS SDK or later.…
15
votes
2 answers

Failed to initiate service connection to simulator Xcode

I run my program, the simulater showed the progress bar and suddenly disappeared and the pop up appeared and written there Failed to initiate service connection to simulator DTServiceHubClient failed to bless service hub for simulator iPhone 8…
Xcodian Solangi
  • 2,342
  • 5
  • 24
  • 52
15
votes
2 answers

How do I stop Xcode 9 from continuously building or at least make it not run build scripts?

After migrating to Xcode 9, I noticed that it constantly fully builds my project. I found that it is somehow related to the "show live issues" setting. Disabling that setting stops builds, but it makes development inconvenient. I would like to…
Roman Temchenko
  • 1,796
  • 1
  • 13
  • 17
15
votes
4 answers

UIActivityViewController is not working in iOS 11

I am using UIActivityViewController to share a article url, using the below code, UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:shareItemArray…
R. Mohan
  • 2,182
  • 17
  • 30
15
votes
2 answers

Xcode 9 - Add an App Store icon

i saw this new requirement in itunes connect (next to the App Store Icon): As for now (Xcode 8.3.x) I have AppIcon assets next to the App Icon Source Is this requirement means i need to change any thing? or only that from Xcode 9.x.x the App Icon…
MTZ4
  • 2,274
  • 2
  • 25
  • 41
15
votes
2 answers

xcodebuild -exportArchive fails with error Locating signing assets failed

I'm using command line xcodebuild tool to export .ipa files from Xcode archives. It was working fine up to Xcode 8.3.3. The same setup has stopped working with Xcode 9 beta. Now it fails with this error: IDEDistribution: Step failed:…
Vladimir Grigorov
  • 10,903
  • 8
  • 60
  • 70
14
votes
2 answers

Bitcode bundle could not be generated (while archiving) because Static Framework (.framework) was built without full bitcode

We are trying to enable Bitcode fully in our Static Framework but we are receiving the following error while archiving the app when the framework is integrated with it though we are able to build it on the simulator or device. ld: bitcode bundle…
ihammys
  • 812
  • 7
  • 15