Questions tagged [xcode6-beta6]

Xcode 6 beta 6 was a pre-release version of Xcode 6 released on August 18, 2014.

68 questions
1
vote
2 answers

How to fix the 'undeclared type IKImageView' error in swift

This is the error message I have imported Foundation but it did not fix the problem. What import am I missing?
Anthony Kong
  • 37,791
  • 46
  • 172
  • 304
1
vote
1 answer

XCode6 beta 6 Swift Compiler Error

I started to watch a YouTube Swift tutorial from user Brian Advent, in specific this tutorial about Remote Push Notification using Parse https://www.youtube.com/watch?v=__zMnlsfwj4 . After downloading the sample app and opening it on Xcode 6 beta 6…
user1667306
1
vote
3 answers

How to call registerForRemoteNotifications for both iOS7 and iOS8 in Swift?

* Note this question is NOT how to register for remote notifications in swift, My question is how to write code in swift that will work when run on devices running both iOS8 and iOS7. The code I posted used to do that with Xcode beta 1 to 5 but with…
Gruntcakes
  • 37,738
  • 44
  • 184
  • 378
1
vote
1 answer

'Cannot create a variadic tuple' error

Here's a function from the Dollar framework for Swift: public class func bind(function: (T...) -> E, _ parameters: T...) -> (() -> E) { return { () -> E in typealias TType = (T...) return function(unsafeBitCast(parameters,…
Jeehut
  • 20,202
  • 8
  • 59
  • 80
0
votes
1 answer

Why can I not put an if statement anywhere in my code? I am using swift

I just started writing a new app in Xcode beta 6 and I need to write an if statement for my code to work but I keep getting the error Expected declaration no matter where I put the if statement. my code is let randomNumberColorPicker =…
Ryan
  • 1
  • 1
0
votes
3 answers

Swift error: Could not find an overload for '&&' that accepts the supplied arguments

I have been working on some tutorials for Swift. I came across a TicTacToe tutorial that I'm trying to code using Xcode 6 Beta 6. I'm getting the following error when I check the values in a dictionary: Could not find an overload for '&&' that…
Renee
  • 3
  • 1
  • 2
0
votes
1 answer

Adjust SKSpriteNode and SKPhysicsBody with specific image.png or image.jpg

I am developing a game with a character with some particular shape, I am creating an SKSpriteNode object with this line: let rockl:SKSpriteNode = SKSpriteNode(color: UIColor.redColor(), size: CGSize(width: newweight*ancho/16, height: alto/5)) I am…
mdperu
  • 43
  • 4
0
votes
0 answers

SourceKitService crash with Bridging-Header and Parse

I realize that there are numerous questions regarding XCode 6 beta 6 and its crashing of SourceKitService, but so far none of these answers have quite applied to my problem. SourceKitService does indeed crash, but only when I include the Parse SDK…
schrismartin
  • 460
  • 4
  • 17
0
votes
2 answers

UITableView works in iOS 7 but appears crushed in iOS 8

Still new to iOS programming here. Have a UITableView that works perfect on iOS 7 but appears crushed in iOS 8. Multiple devices. Also exhibits the same problem/difference when using the simulators (iOS 7 vs. iOS 8 simulators). I am on Xcode 6 beta…
HirsuteJim
  • 529
  • 4
  • 13
0
votes
0 answers

override init() {} was running in loop

I'm having a trouble with override init() {} method which is running in loop. Until it crash with exc_bad_access. override init() { super.init() self.container = UIView() self.container.clipsToBounds = false println("self.container:…
eNeF
  • 3,241
  • 2
  • 18
  • 41
0
votes
2 answers

get height of an uiscrollview with autolayout

I have build an uiscrollview with pure autolayout, so I don't use : [scrollView setContentSize:CGMakeSize(contentWidth,contentHeight)]; the problem is that now I need to get the contentSize.height of the uiScrollView, but with autoloayout I am…
amau96
  • 857
  • 1
  • 8
  • 19
0
votes
2 answers

(Swift) Error: UIApplicationMain attribute cannot be used in a module

So, as part of my effort to learn Swift, I got my hands on the open source "Adventure" project (found HERE) made available by Apple. Embarrassingly, I didn't go too far before I ran into my first predicament. When I tried to compile the project, I…
BinaryCat
  • 1,220
  • 2
  • 17
  • 32
0
votes
0 answers

Compile error with cocoa pod code in iOS 8 beta

I'm developing in Xcode6 Beta 6 for iOS 8. I am encountering an code error on an imported LastFM Cocoa Pod: when I try to compile, but I can't seem to figure out what's causing the error. (Using all the code from the example) I keep getting the…
0
votes
1 answer

xcode beta 6 sprite kit?

I just update to xCode beta 6. In beta5 everything works but in beta 6 got to change somethings. I add a lot of "!" in my codes. Anyway, My project is little game. And after complete the level(won or lose) I want to call skscene. The code is where…
Antiokhos
  • 2,944
  • 5
  • 23
  • 32
0
votes
0 answers

XCode6 Beta 6: Is this class creation syntax no long valid in swift?

I am referring the answer here: https://stackoverflow.com/a/24061386/58129 The code is reproduced here: var clazz: NSObject.Type = TestObject.self var instance : NSObject = clazz() if let testObject = instance as? TestObject { …
Anthony Kong
  • 37,791
  • 46
  • 172
  • 304