Questions tagged [swift3.2]

Only use this tag if your question is about a specific change introduced in `Swift 3.2`. For generic Swift questions, use the [swift] tag.

79 questions
12
votes
5 answers

How can I update swift from 3.1 to 3.2, but not to 4.0

I have checked the question related to how to find the current Swift version by the command swift --version, but how can I upgrade my Swift version from 3.1 to 3.2? (because the Xcode 9 only supports Swift 4.0 & Swift 3.2) To build successfully both…
JerryZhou
  • 4,566
  • 3
  • 37
  • 60
9
votes
2 answers

Tell Carthage to build dependency using Swift 3.2.2 (NOT Swift 4.0)

I have a project written in Swift 3.2.2 and compiled using XCode 9.1 I have a dependency which is built using Carthage using this command: carthage update --platform iOS The issue is that Carthage builds the dependency using Swift 4.0 (instead of…
etayluz
  • 15,920
  • 23
  • 106
  • 151
9
votes
3 answers

Module compiled with Swift 4.0 cannot be imported in Swift 3.2.1

Swift 4.0 modules were fine in Swift 3.2 apps with Xcode 9.0. But now, with Xcode 9.1, I get: Module compiled with Swift 4.0 cannot be imported in Swift 3.2.1 Or: Module compiled with Swift 4.0 cannot be imported in Swift 4.0.1
Cœur
  • 37,241
  • 25
  • 195
  • 267
6
votes
1 answer

Unable to receive FCM Topic Messaging on iOS 9.2

I wrote application which uses FCM topic massaging to receive push notifications from server. My HTTP request…
5
votes
2 answers

UINavigationBar back button not showing on iPhone X iOS 11

I am facing an issue, When i run my app on iPhone SE simulator it shows back button on nav bar like this. But when i run the same app on iPhone X, iPhone 8 and iPhone 8 plus iOS 11 and XCode 9 there is no back button on nav bar and its for all…
Waris Shams
  • 1,606
  • 1
  • 15
  • 27
5
votes
1 answer

Unknown parameter UInt8 in '_specialize attribute': Xcode 9

This code used for building bit pattern from array of bits gives me error in Xcode 9 (works in 8.3.3) @_specialize(UInt8) func integerFrom(_ bits: Array) -> T { var bitPattern: T = 0 for idx in bits.indices { …
Sahil Kapoor
  • 11,183
  • 13
  • 64
  • 87
4
votes
2 answers

Pass values from container view to parent view controller

Im new to swift and i would like pass an array from my container view to parent view.I have created the container view using story board, but the container view appears and disappears programatically as shown below: //in parent view controller,…
4
votes
0 answers

Crash: Assertion failed: (!_tlsResumeBlock), function _handleTLSEvent for build released through testflight in iOS

I've released my app (iOS 10+) to pilot groups through testflight and recently I've been getting crash reports which points to some _handleTLSEvent. My app also has crashlytics installed which says the crash description as Assertion failed:…
Francis F
  • 3,157
  • 3
  • 41
  • 79
3
votes
0 answers

Xcode 9 : Command failed due to signal: Abort trap: 6

I am not able to build in xcode 9. It says Command failed due to signal: Abort trap: 6. I have tried solutions mentioned in stackoverflow, but none of them worked. As its mentioned, overriding description var gives this error. This is done in third…
rishu1992
  • 1,414
  • 3
  • 14
  • 33
3
votes
1 answer

Issue facing for xcode-ui-testing in XCode 9

UI Test for an ios-app, developed in XCode 8 and swift 3.2. Facing problem to deal with ScrollViews, collectionViews after upgrade XCode to 9 I can tap and access the Buttons, StaticTexts, TextFields elements. But I can not tap or access the…
Ali Azam
  • 2,047
  • 1
  • 16
  • 25
3
votes
1 answer

How do I pass a dictionary in alamofire multipart data? iOS swift3

I want to make a dictionary and pass these data along with a video file upload using alamofire. Below is my json. { "taskid": "2", "task_type": "N\/A", "fileName": null, “videofile”: "task": [ { “Cid": 1, …
user8674636
3
votes
3 answers

Swift Protocol Extension with AssociatedType Constrained to Collection, Can't Use Subscript

I'm trying to write a protocol that conforms to the Collection Protocol, and it has an associatedType - Object and a property object. protocol DDCDataSource: Collection { associatedtype Object var object: Object {get set} } I want to add…
3
votes
2 answers

iOS: Scrolling text view to bottom programmatically creates a large white space after the text

I am trying to load the contents of a file to a TextView on viewDidLoad() of a ViewController. I want the user to see the last content loaded from the file, so I tried the solutions mentioned here. let bottom = textView.contentSize.height -…
sonnet
  • 567
  • 4
  • 6
2
votes
2 answers

How to pinch with two fingers in iOS app automation with swift

I want to apply pinch-in and pinch-out gesture into a imageView in my application. I am using Xcode9 and swift 3.2 I could not able to tap on specific two coordinate at a time of my desired image app.scrollViews.scrollViews.images.element(boundBy:…
Mimu Saha Tishan
  • 2,402
  • 1
  • 21
  • 40
2
votes
1 answer

How to drag and drop an element for xcode-ui-testing in Xcode 9

UI Test for an ios-app, developed in Xcode 8 and swift 3.2. I'm facing a problem to deal with drag and drop after upgrading Xcode version 8 to 9 I would like to drag an element [i.e. button] and drop it to another element [i.e. on homepage]. For…
Ali Azam
  • 2,047
  • 1
  • 16
  • 25
1
2 3 4 5 6