Questions tagged [xcode6-beta5]

27 questions
290
votes
28 answers

Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost."

I have an application which works fine on Xcode6-Beta1 and Xcode6-Beta2 with both iOS7 and iOS8. But with Xcode6-Beta3, Beta4, Beta5 I'm facing network issues with iOS8 but everything works fine on iOS7. I get the error "The network connection was…
VoidStack
  • 3,038
  • 2
  • 14
  • 10
36
votes
4 answers

fatal error: NSArray element failed to match the Swift Array Element type

Suddenly I'v started getting run time error as, fatal error: NSArray element failed to match the Swift Array Element type I'v declared my array as, var myArray : [CUSTOM_CLASS] = [CUSTOM_CLASS]() Now, in my server response success block I…
BaSha
  • 2,356
  • 3
  • 21
  • 38
17
votes
4 answers

Swift Navigation Bar Button and Title don't appear

I'd like to create a Navigation bar on top of my App. I created an Navigation Controller -> Tab Bar Controller -> Navigation Controller -> Table Controller I dragged a Bar Button Item on the upper right side. I double clicked the title in the…
Joe
  • 207
  • 1
  • 2
  • 9
15
votes
1 answer

How to implement NSCoding on a generic class in Swift?

I am having trouble with generic classes and NSCoding in Swift (XCode beta 5). Specifically, this example code works nicely: class Foo : NSObject, NSCoding { let bar: String init(bar: String){ self.bar = bar; } func…
driis
  • 161,458
  • 45
  • 265
  • 341
13
votes
1 answer

Why does using headerReferenceSize with self-sizing cells in a collection view cause a crash in iOS 8?

I managed to figure out the approach for self-sizing collection view cells under iOS 8. I want to do this as a part of a accessory view. I get a crash ... the interesting part of the stacktrace is as follows: ** Terminating app due to uncaught…
fatuhoku
  • 4,815
  • 3
  • 30
  • 70
5
votes
1 answer

Double tap outside action sheet popover presented using UIAlertController leads to going back to parent view in ios8 xcode 6 beta 5

I have a action sheet which i am presenting using UIAlertcontroller in ios8 (xcode 6 beta 5). I am using UIAlertcontroller because UIActionsheet ( which is deprecated in iOS 8 ) was not working properly in ios8, on click of any option in the…
5
votes
1 answer

Swift TyphoonBlockComponentFactory Error in XCTest

i’m using Swift with Typhoon and Cocoapods. Everything worked well until i started to write an Integrationtest (according to the Typhoon-Example-App Test) for my Typhoon component. I wanted to setup the TyphoonFactory in the Test setUp() method in…
robbiebubble
  • 161
  • 9
2
votes
1 answer

Facebook sdk compiling error

What does this error mean? ld: warning: ignoring file /Users/pramonowang/Desktop/FacebookSDK/Bolts.framework/Bolts, ↳ missing required architecture x86_64 in file ↳ /Users/pramonowang/Desktop/FacebookSDK/Bolts.framework/Bolts (2…
2
votes
2 answers

Show new ViewController after tapping UIButton in a custom cell

Heyhey! I'd like to show a ViewController with an Action (tappedInside of a UIButton in a custom cell). In this case I can't just control-drag from the UIButton in the custom cell to the NavigationController (ViewController is embedded). How can I…
Joe
  • 207
  • 1
  • 2
  • 9
2
votes
2 answers

Swift: How to better format the output when using println with a tuple?

I have defined this function: func need_rebalance() -> (Bool, RebalanceStrategy) { } where RebalanceStrategy is an enum type enum RebalanceStrategy: String { case LeftRight = "LeftRight" case RightLeft = "RightLeft" } When I tried to…
Anthony Kong
  • 37,791
  • 46
  • 172
  • 304
2
votes
2 answers

In Xcode 6 beta 5, setting auto-layout constraints as placeholders doesn't seem to work?

Whenever you do not provide autolayout constraints in Interface Builder, constraints are automatically created for you when you run the application. I want to use Masonry to manage my own constraints, but the ones in storyboard are getting in the…
fatuhoku
  • 4,815
  • 3
  • 30
  • 70
2
votes
1 answer

Can't purchase IAP (sandbox) on iOS 8 beta

I'm updating an app with IAP to iOS 8, but I can't test any IAP functionality. Attempting to purchase any IAP (both consumable and non-consumable) as a test user gives me a failed transaction with the (non-helpful) error: Error…
Doches
  • 3,276
  • 2
  • 19
  • 26
1
vote
1 answer

Trouble using AWSiOSSDKv2 via cocoapods 0.36 beta2

Using a Podfile like so: platform :ios, '8.1' source 'https://github.com/CocoaPods/Specs.git' pod 'AWSiOSSDKv2' I am getting a bunch of "file not found" errors in my xcode project related to the #imports being used in the AWSSDK. E.g. in…
user871177
  • 721
  • 5
  • 12
1
vote
1 answer

Label does not resize when using autolayout, constraint in Storyboard

My Label within the tableview customcell does not resize when table is viewed in portrait mode USING Xcode 6, beta 5 - Swift language. Running for Simulator iPhone 5s In this new Xcode, the default size of the ViewController and tableview is…
Renu
  • 147
  • 2
  • 11
1
vote
2 answers

Can't Run xCode 6 Beta 5 Swift App on iPhone 5?

I'm trying to test my swift app on my iPhone 5 device. But I'm getting the following message: I just updated my iPhone 5 and xCode 6 to the latest versions. Any ideas?
blee908
  • 12,165
  • 10
  • 34
  • 41
1
2