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
0
votes
1 answer

Xcode 9.2 stuck in compiling Swift 3.2 Project

Compiling Swift 3.2 project stuck and eats up memory in Xcode 9. I believe there are memory leaks in our project. But I can build and run the same project in Xcode 8.3.3 without problems. Can anyone help me with this problem? Here are the pods I…
J. Goce
  • 279
  • 3
  • 10
0
votes
1 answer

Module MapboxGeocoder not found Xcode 9 Swift 4

I'm trying to install the MapboxGeocoding framework with Cocoapods and Xcode9. Unfortunately Xcode can't find the module. It shows me the following error: Cannot load underlying module for 'MapboxGeocoder' The pod file looks as the following: #…
supercoast
  • 27
  • 4
0
votes
1 answer

Swift 4 - How to activate segue programmatically from button nested in UICollectionViewCell

I am trying to activate a segue between a UICollectionView, subview of a UIViewController, and a separate ViewController (called RegisterController). The CollectionView is all set up programmatically, and there is a button on the last cell. However,…
0
votes
1 answer

Swift 3 @objc interference issue not being fixed :-(

Before this gets marked as duplicate, I've already checked The use of Swift 3 @objc inference in Swift 4 mode is deprecated? I'm resuming development on app which I had been working on before Xcode 9 (with Swift 4) was released. I'm getting the…
Adi219
  • 4,712
  • 2
  • 20
  • 43
0
votes
1 answer

How do you fetch only favorite pictures using Objective C's PHFetchOptions

I can fetch photos in a certain date range by doing this, but how can I further filter by their favorite statuses? PHFetchOptions *fetchOptions = [PHFetchOptions new]; fetchOptions.predicate = [NSPredicate predicateWithFormat:@"(creationDate >= %@)…
tsuyoski
  • 614
  • 5
  • 22
0
votes
1 answer

How connect a UIButton to the UIViewController Exit with code Swift

Lets say I have two UIViewControllers, we'll call them VC1 and VC2. VC1 performs a segue that then goes to VC2, and VC2 has a close button that will unwind that segue back to VC1. So normally, if I'm wanting to make a custom UIStoryboardSegue I…
Jason Brady
  • 1,560
  • 1
  • 17
  • 40
0
votes
1 answer

"Cannot convert value of type 'AVAudioPlayer.Type' to expected argument type"

I'm having trouble with the function audioPlayerDidFinish playing. I have added the AVAudioPlayerDelegate to my view controller class and defined the function. When I call the function I get the error "Cannot convert value of type…
Talon Brown
  • 127
  • 13
0
votes
0 answers

How to use third part framework inside my framework? (Swift / iOS)

I am trying to build a Cocoa Touch Framework written in Swift language. There are cases where we need to use third party frameworks. What I'd like to do is package an iOS framework (could be a Swift-framework, could be an Objective-C framework)…
Luciano Borges
  • 817
  • 3
  • 12
  • 31
0
votes
0 answers

iOS app crashes immediately after printing log [DYMTLInitPlatform] platform initialisation successful

I have created a project and using some third party framework I have imported them properly in app and trying to use them. However I am not getting any error during compile time. The app crashes at runtime printing the log "[DYMTLInitPlatform]…
vicky
  • 253
  • 2
  • 14
0
votes
1 answer

How to get unit test Code Coverage using terminal + Xcode 9.1

I have create simple demo project for getting code coverage whine I run in Xcode I am getting this coverage. look in to image But when I run from command using terminal I can't show code coverage xcodebuild -scheme Mock -destination 'platform=iOS…
jignesh Vadadoriya
  • 3,244
  • 3
  • 18
  • 29
0
votes
2 answers

Trying to pass an array and its values to populate a table view controller

So I am trying to pass the arrays from a previous view controller called configNames to populate my table view controller (basically a scoreboard) override func prepare(for segue: UIStoryboardSegue, sender: Any?) { let destVC: scoreboard =…
BigNeil
  • 13
  • 5
0
votes
1 answer

How to only display the part of a sub UIView that is just inside its super UIView?

How to restrict the visible part of a UIView to the area that is inside of its superview as I draw below? I want to apply it to just some of subviews.
Hamed Ghadirian
  • 6,159
  • 7
  • 48
  • 67
0
votes
1 answer

Folder with dark triangles in Xcode

In my project by mistake I created a group without folder. Now I want to make its folder in file structure too. How to remove dark triangles in Xcode folders? So that it will exist as a folder in file structure.
Angel
  • 112
  • 15
0
votes
1 answer

Xcode 9 simulators does not run

I'm getting error while running an application on simulator using Xcode 9.2. Can not run project on simulator devices. Error: clang: error: linker command failed with exit code 1 (use -v to see invocation) And in my CoreSimulator.log file I have…
oakt
  • 117
  • 10
0
votes
1 answer

Using UIPickerView inside UITableViewController

I'm trying to add a UIPickerView into my UITableViewController and it doesn't let me enter UIPickerViewDataSource. I'm not able to set the dataSource for the picker view... so how will this work? I get this error: Cannot assign value of type…
Amit Kalra
  • 4,085
  • 6
  • 28
  • 44