This tag should only be used for questions specific to the usage and features of Xcode 10. 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.
Questions tagged [xcode10]
976 questions
33
votes
3 answers
error: Couldn't IRGen expression, no additional error
I can not print debug information in my UI TESTS. Configuration: Xcode 10 and SWIFT 4.2.
When I try to print something in console I can only see an error:
"error: Couldn't IRGen expression, no additional error"
I didn't have any problem in…

Paweł Zemsta
- 339
- 1
- 3
- 5
33
votes
5 answers
How to show verification code suggestion on keyboard from Message
I watched this video What's New in Cocoa Touch at WWDC 2018 and seen:
How to show this information?

lee
- 7,955
- 8
- 44
- 60
32
votes
2 answers
DVTCoreSimulatorAdditionsErrorDomain Xcode 10GM
When I update Xcode to Version 10 GM, build success, but Simulator can't work! with error:
The operation couldn’t be completed. (DVTCoreSimulatorAdditionsErrorDomain error 0.)

guoliang liu
- 321
- 3
- 4
32
votes
16 answers
Xcode 10 Command PhaseScriptExecution failed with a nonzero exit code (EXPANDED_CODE_SIGN_IDENTITY: unbound variable)
This error pops up when doing Project > Test
/Users/.../Project/Pods/Target Support Files/Pods-Target/Pods-TargetTests-frameworks.sh:
line 104: EXPANDED_CODE_SIGN_IDENTITY: unbound variable
Command PhaseScriptExecution failed with a nonzero exit…

Alex Stone
- 46,408
- 55
- 231
- 407
31
votes
3 answers
Xcode 10 - iOS 12 Simulator location simulation fails on City Bicycle Ride/City Run/Freeway Drive
I just updated from Xcode 9 to Xcode 10 a day ago, and when I was about to debug my location tracking app just realized that I never received device location. So I went to Maps app to check if it was just a problem with my app, but when I turn…

Jose Vf
- 1,493
- 17
- 26
30
votes
12 answers
error: unable to load standard library for target 'arm64-apple-ios10.0-simulator'?
I updated my Xcode but not able to build. It's failing with:
:0: error: unable to load standard library for target 'arm64-apple-ios10.0-simulator'
Merge Script:
# 1
# Set bash script to exit immediately if any commands fail.
set -e
#…

tp2376
- 690
- 1
- 7
- 23
30
votes
7 answers
ld: library not found for -lstdc++.6
After updating Xcode Version to 10.0 beta start getting "ld: library not found for -lstdc++.6" error. same code working fine in Xcode 9.2
Also updated macOS to 10.13.5

vks
- 303
- 1
- 3
- 7
29
votes
5 answers
Xcode 10 archiving fails - only on command line (xcodebuild)
I'm having issues with archiving on my CI machine (Jenkins), when running the process manually on the SAME machine but with the Xcode UI, everything works just fine.
The error I get is:
:0: error: cannot have input files with file list
**…

Adi B.
- 369
- 1
- 3
- 10
29
votes
7 answers
preferredStatusBarStyle var not working in iOS12?
Adding
application.statusBarStyle = .lightContent
to my AppDelegate's didFinishLaunchingWithOptions method nor adding
override var preferredStatusBarStyle: UIStatusBarStyle {
return UIStatusBarStyle.lightContent
}
to the VC no longer works on…

Nostradamus
- 1,497
- 3
- 20
- 34
29
votes
4 answers
our app crashed in iOS 9 which upload by Xcode 10
Our app crashed in iOS 9 which upload to App Store by Xcode 10 GM Seed. It's running perfectly when using XCode 10 GM Debug Or Archive To Ad_Hoc. Here's some call stack.
Is Xcode 10 GM do anything with image.assets or others?
apple reply

apricot
- 434
- 1
- 4
- 10
28
votes
4 answers
Run react native app on Xcode 10
I get this error when i want to run my react native app hello world app on Xcode 10 (new beta version), can you help me?
The error :
error: Build input file cannot be found:
…

Sajad Beheshti
- 679
- 3
- 8
- 20
28
votes
4 answers
Cannot invoke initializer for type 'Range' with an argument list of type '(Range)'
After updating to Xcode 10 beta, which apparently comes with Swift 4.1.50, I'm seeing the following error which I'm not sure how to fix:
Cannot invoke initializer for type 'Range< String.Index>' with an argument list of type '(Range<…

LinusGeffarth
- 27,197
- 29
- 120
- 174
27
votes
3 answers
Adding code snippet in Code Snippet Library (Xcode 10)
Recently when I was using Xcode 10 beta 3, I tried to make a code snippet and add it to the code snippet library.
But the drag drop cannot be done as the code snippet library is detached in Xcode 10, and hides when I click on a code.
How to add code…

Subhajit Halder
- 1,427
- 13
- 21
26
votes
4 answers
Xcode 10 - Instance will be immediately deallocated because property is 'weak'
I recently downloaded Xcode 10 and I noticed an apparent bug when using weak or unowned variables. I managed to create a simple example that showcases the problem so that people can recreate it.
class MainClass {
weak var weakClass:…

Nader
- 1,120
- 1
- 9
- 22
25
votes
3 answers
Xcode 10: Code Signing my App+Framework fails, because of failure signing 3rd party dependency framework (PromiseKit). Works in Xcode 9
I have an Xcode 10 - iOS12 swift project that links against My own framework (also Xcode 10 + iOS12).
The app project is referencing my framework project as a sub-project reference.
My Framework project references PromiseKit.framework (a universal…

FranticRock
- 3,233
- 1
- 31
- 56