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
0 answers

Swift 4 - Xcode 9 store Array in UserDefaults via Json

Goal: is to save array data to be retrieved by next session Approach: encode the array to Json, store in UserDefaults, then retrieve data and decode to the array. Maybe a better way, assume wrapping in Json is the best way to transport to…
Jake
  • 39
  • 1
0
votes
0 answers

AutoLayout: Two Stackviews have different right margins

I have two similar StackViews both have trailing constraint of 8 to superview (same superview), but they look different and have different widths: Constraints of Stack View #1 : Constraints of Stack View #2 :
AVEbrahimi
  • 17,993
  • 23
  • 107
  • 210
0
votes
1 answer

Execute XCUITests on static iOS framework

I have developed a static iOS .framework but during its development, we figured out that its manual testing is taking much time due to a huge number of datasets. In order to minimize its testing time, we have decided to automate this process so we…
ihammys
  • 812
  • 7
  • 15
0
votes
0 answers

xcodebuild archive success on Terminal but not on Jenkins

I have problem when execute command line on Jenkins xcodebuild -workspace AhaFastlane.xcworkspace -scheme Pro -sdk iphoneos -configuration AppStoreDistribution archive -archivePath $PWD/builds/AhaFastlane.xcarchive this command execute…
Son Thai
  • 1
  • 1
  • 3
0
votes
1 answer

Xcode 9 reset size classes "view as" to show constraints for Any Any

In Xcode 9, I did some UI spot checking using the "view as" feature in Xcode 9 (which was previously in Xcode 8, but is now much more robust). But now I don't know how to reset this filter*, and now any new constraint I add is created using the…
brandonscript
  • 68,675
  • 32
  • 163
  • 220
0
votes
0 answers

Xcode - thick border appearing around the colors in attribute inspector

In Xcode, there is a thick border around all the colors that appear in the attribute inspector. I don't think that I changed any setting. I am running Xcode Version 9.2 (9C40b) I also see a thick border around the selected screen object.
S. Hertz
  • 33
  • 4
0
votes
2 answers

Google Sign In showing blank screen in iOS

I have implemented code as per the google SDK documentation line by line in my app, but still when I click on google sign in button app shifts to new view controller with webview with blank screen. Have tried multiple solution found here : GIDSignIn…
Fatin Wasta
  • 424
  • 1
  • 6
  • 20
0
votes
0 answers

iOS pass parameter swift 3

Hi I want to simplify my code so I put in following way private func heightChangedHandler(query: HKObserverQuery!, completionHandler: HKObserverQueryCompletionHandler!, error: Error!) { // Here you need to call a function to query the height…
e.k
  • 1,333
  • 1
  • 17
  • 36
0
votes
1 answer

Unable to make tabbar visible

I am having an app where I am hiding and showing tabbar on an event, below is the method I am using , when I try to hide it, it works fine . But when I am trying to make it visible it doesn't work. -(void)setTabBarVisible:(BOOL)visible…
vishal dharankar
  • 7,536
  • 7
  • 57
  • 93
0
votes
1 answer

NSFetchedResultsController unresolved identifier Swift 4

I'm getting this strange "use of unresolved identifier" warning, even though I'm declaring the var on the line above. What's happening here? Here's my code: var fetchedResultsController: NSFetchedResultsController { if…
BillySangster
  • 408
  • 1
  • 3
  • 16
0
votes
1 answer

cannot use namespace and cannot include standard C++ library in my .h files

i'm using C++ Audio processing library for my Swift project from https://www.surina.net/soundtouch/sourcecode.html I have also included those cpp file in my compile sources in Projects-targets-build phases. When i try to import all of library…
calvin sugianto
  • 610
  • 7
  • 27
0
votes
0 answers

How to create UIButton event in xib for push to viewcontroller

I have .xib for common header in which there are a text field and one UIButton. What I want to do with that is if user click on button then it should redirect to another UIViewController with textfield value.
0
votes
1 answer

[NSView reloadData]: unrecognized selector sent to instance

I am trying to learn a bit of Swift and xcode by creating a three-level outlineView in the master side of a splitView. The code crashes after exiting to reloadData (see below). It makes one successful pass through the NSOutlineViewDataSource…
0
votes
0 answers

Strange Xcode 9 issue , Can't add an app icon

Whenever I add an app Icon to Asset Catalog and run on Device , it gives following error. This happens with every single project even, blank new projects. Asset Catalog Compiler Error /Users/****/Documents/Test/sfdadfas/sfdadfas/Assets.xcassets: …
Rukshan
  • 7,902
  • 6
  • 43
  • 61
0
votes
0 answers

Nil after fetch on related entities in core data swift 4 iOS 11

This is my model with Country And Brand entities. I'm trying to get all brands with specified country name. Code looks like this: var brands: [Brand]! let brandRequest = Brand.createFetchRequest() brandRequest.predicate =…
emerog
  • 69
  • 3
  • 10