Questions tagged [xcode8-beta3]

21 questions
202
votes
20 answers

Xcode 8 Beta 3 Use Legacy Swift issue

I have an Objective-C project in Xcode 8 Beta 3. Since updating, whenever I try to build I receive the following error: “Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the…
Bryan
  • 3,199
  • 3
  • 16
  • 24
33
votes
8 answers

Timer.scheduledTimer Swift 3 pre-iOS 10 compatibility

I need to schedule a Timer for firing a function every second but I see that in Xcode 8 beta 3 the scheduledTimer is only available for iOS 10. Is there any alternative for using the timer in iOS 9 or previous…
rockdaswift
  • 9,613
  • 5
  • 40
  • 46
16
votes
2 answers

Swift 3.0: How to call CGImageCreateWithImageInRect()?

I need to implement this Objective-C code in Swift 3.0 (I'm using Xcode 8 Beta 3): // Note: this code comes from an Obj-C category on UIImage CGImageRef imageRef = CGImageCreateWithImageInRect(self.CGImage, cropRect); UIImage *image = [UIImage…
RobertJoseph
  • 7,968
  • 12
  • 68
  • 113
8
votes
3 answers

UNUserNotificationCenter didRecieve Response is not called if App is terminated

UNUserNotificationCenter function is not called on clicking Action Button Chat in Notification after 3D Touch if App is not active(not even in Background or say has terminated). I used "attach to process by name" in Xcode to debug app when app was…
6
votes
1 answer

How do I get SpriteKit Playgrounds working in Xcode 8 beta?

I want to be able to easily prototype my Sprite Kit code in Playgrounds. This works fine in Xcode 7 import UIKit import SpriteKit import XCPlayground let sceneView = SKView(frame: CGRect(x:0 , y:0, width: 480, height: 320)) let scene =…
Corey F
  • 621
  • 4
  • 14
5
votes
5 answers

Cannot extract xcode 8 beta 3

I have downloaded it 3 times. Twice in safari and once in chrome. Every time I cannot unarchive it with the default tool, or with Unarchiver. Based on this apple developer thread I tried: $ xar -xf Xcode_8_beta_3\ \(1\).xip Error while extracting…
SimplGy
  • 20,079
  • 15
  • 107
  • 144
4
votes
1 answer

Simulated Metrics "Orientation" dropdown missing

The Simulated Metrics menu in the Attributes Inspector is missing the Orientation dropdown option in xCode 8.0 beta 3. I have the root view controller selected. The option is unavailable for any view.
Kurt Nauck
  • 339
  • 4
  • 15
3
votes
2 answers

Payment domain intent is showing internet result instead of intent UI or intent confirmation using Sirikit

I am using SendPayment intent using Sirikit with my payment domain app. Once I say "Send 10$ to William using payments app", it goes to Intent handler but it shows internet results rather than asking for the confirmation and showing default intent…
3
votes
1 answer

How to migrate the existing project from WatchOS 2 into WatchOS 3

I have an existing WatchOS 2 app. I want to upgrade it and add some WatchOS 3 features, so I have installed Xcode 8 beta 3. My question is do I need to create another target for WatchOS 3 project or I can still keep working on the same WatchOS 2…
Samira
  • 215
  • 2
  • 14
2
votes
0 answers

LSApplicationLaunchProhibited when trying to upload a sticker extension via Xcode 8 beta 3

I am getting this error when trying to upload/validate/export to iTunes Connect, looks like it cannot seem to find LSApplicationLaunchProhibited in the Info.plist file. How it can be fixed? https://i.stack.imgur.com/t3q88.png
2
votes
1 answer

Layout issues in iOS10

I'll try to keep this short. I was using viewDidLayoutSubviews to (mostly) apply corner radius to some views in several UIViewControllers. Also doing the same in layoutSubviews for custom UIViews. After installing Xcode 8 Beta, this stopped behaving…
Renato
  • 96
  • 2
  • 6
2
votes
2 answers

To add the WatchOS 3 snapshot feature, handleBackgroundTasks and scheduleSnapshotRefreshWithPreferredDate are never triggered

I need to add the snapshot of a watch app to be placed in Dock as it's a new feature I can't find any resources to guide me. I have read Apple's Documentation…
1
vote
0 answers

Requested URL not found

Code sample is Swift 3.0 running in Xcode 8(β3). This Weather Underground URL (when MyKey is replaced with a valid key) returns a JSON string containing the current weather at the given location... …
Vince O'Sullivan
  • 2,611
  • 32
  • 45
1
vote
0 answers

swift sodlib tool error happened when create a new target of Application Extension

my container App is written by objective-c,then I used Xcode8 beta3 to create a new target of Application Extension which used swift ,when I build my project ,I got the error: Effective srcDirs: {( …
SnowKing
  • 13
  • 4
1
vote
1 answer

URLSession trowing an NSURLSession exception

Swift 3 on Xcode 8β3. Any ideas why the code below is throwing the error (further) below, particularly given that I am using URLSession not NSURLSession? CODE public func updateCurrentConditions() { let session = URLSession() let url =…
Vince O'Sullivan
  • 2,611
  • 32
  • 45
1
2