Questions tagged [xcode8]

1

votes
1

answer
869

Views

Corner Radius for a Label on UItableviewCell is not applying in xcode 8

Here is my code [cell.label.layer setCornerRadius:cell.label.frame.size.width/2]; here is what I tried :- cell.label.clipsToBounds = YES; also tried :- cell.label.layer.masksToBounds = YES; also I have Imported:- #import none of these approaches works. Also I have tried it in both IOS 9 and IOS 10...
vinay
1

votes
0

answer
27

Views

Xcode 9.2 stucks on adding accounts after update of High Sierra

After updating to High Sierra, I am unable to add accounts to xcode. It stucks on add accounts and keeps on loading to infinity.I have two versions of xcode i;e, 8.3.3 and 9.2 and both are having same problem.
Tabish Sohail
1

votes
0

answer
892

Views

How to get a copy of private key xCode?

I am facing this issue in order to create a build. Please help if someone also faced this issue before.This is the screenshot of the issue I am facing
ANDROID DEVELOPER
1

votes
0

answer
165

Views

EditActionsForRowAt not working for two tableView on Scrollview in Swift 3

I use two tableView with 5 and 3 cells over scrollview . Trying to use swipeable gesture on both tableView using editActionsForRowAt method of tableView But it just swipe only three cells of first tableView and other cell swipe by trying 5 to 7 times or unswipeable. Help me to get it , Thanks in adv...
Waliyan
1

votes
1

answer
153

Views

Error while loading request in webView Request Timed out error

I just want to load this url in a webview. It works fine when I run the same code on simulator and it load properly in simulator. I get error when I run the code on Real device Iphone. I have checked many example nothing worked out. Thanks in advance. This is console log 2018-06-04 17:30:34.473925+...
Ghous Ansari
1

votes
1

answer
156

Views

How To Transfer Data from a Table View Cell to a View Controller

In my app I have a row of table view cells, each with a stepper and three labels. The stepper changes the value of a label in a table view cell. The problem I am facing is that when I try to transfer this data to the view controller the table view is on it does not transfer the data. I need each cel...
Ryan M
1

votes
0

answer
236

Views

Swift- Load multiple child View Controllers dynamically with navigation controlled by side TableView

Computer science student trying to learn Swift here. I am trying to create a very simple application for iPad which is essentially a food menu. The main page will just be table of restaurants and selecting a restaurant will bring the user to the restaurant's menu. The menu page has a Table View on t...
kelelenceu
1

votes
1

answer
3.5k

Views

Error on running the project in simulator: “Print: Entry, ”:CFBundleIdentifier“, Does Not Exist”

I am setting up React-Native in my laptop. The versions I am using for different tools are as follows: Node.js : v10.7.0 react-native-cli: 2.0.1 react-native: 0.56.0 On running the command 'react-native run-ios' I am getting an error like: The following build commands failed: CompileC /Users/mshikhe...
mshikher
1

votes
2

answer
67

Views

Cannot wait for the result of MKDirections.calculate, getting nil instead of it

I would like to calculate the real walking distance between my current location and a list of CLLocations using MKDirections.calculate. However, for some reason the return command at the end of the function does not wait for the result and tries to return the empty variable. My code looks like this:...
Viktor Csimma
1

votes
0

answer
61

Views

XLPagerTabStrip not swiping to the next vc

I don't know why it is not swiping to the next viewController. Instead it swipes to a blank page and the tab slider also doesn't move. But when i click on the tabs it works fine and slides to the next viewController. Really not sure why its like this? Any help would be much appreciated. Thanks impo...
j.iese
1

votes
0

answer
128

Views

Wahoo Fitness API iOS - documentation

Does anyone have any links or basic sample code for the methodology of implementing the Wahoo Fitness API into a Swift project in Xcode? I don't even know where to begin and they provide no documentation. Thanks.
RobertyBob
1

votes
0

answer
1.5k

Views

Xcodebuild failed exit code 65 - ios

Receiving the following error when doing a tns run -v ios (mac is running High Sierra and xcode is current, certificates are in place, etc). any assistance would be greatly appreciated. Here the error: `Building project... Xcode build... === BUILD TARGET HelloWorld OF PROJECT HelloWorld WITH CONFIG...
easelpad
1

votes
0

answer
95

Views

Failed to render autoLayout Status, the agent crashed

I have recently received this error 'Failed to render autoLayout Status, the agent crashed' ever since updating to IOS 12. The previous fix was to put this in my pod file and it worked up until IOS 12. Now it's actually crashing the auto layout which makes it so I can't edit anything. post_install...
bradford gray
1

votes
0

answer
30

Views

Push Notification using FCM in-between web and App

I have tried to implement push Notification in-between from C#.Net(MVC) Web to React Native (Android and IPhone). No Error showing in my code but not show notification in App. I have tried as reference gave in Stack overflow already try { string server_api_key = ConfigurationManager.AppSettings['S...
Priya
1

votes
1

answer
24

Views

making sprite move on swift using spritekit

I am very new to using swift and Xcode in general. I wish to create a very simple game and I am trying to figure out why my ball only goes down once rather than go up and down twice when the screen is touched override func touchesBegan(_ touches: Set, with event: UIEvent?) { let actionUp = SKAct...
krish malhotra
1

votes
1

answer
213

Views

Ambiguous operator resolution regression in Swift3?

I have value types to represent Duration and Frequency (inverted Durations). Wanting to do math with them, I have among others the following operator overload: func * (a:Frequency, b:Duration) -> Double { return a.numerator * (b / a.denominator) } Because I use these often with graphics code, I foun...
Travis Griggs
1

votes
1

answer
309

Views

Xcode8 beta adding self.view.layoutIfNeeded() in inputAccessoryView getter causing crash

Using Xcode8 Beta my simulator crashes when using an inputAccessoryView and adding the line self.view.layoutIfNeeded() in the getter of the inputAccessoryView override. It works fine on my devices but this one line causes the simulator to crash everytime override var inputAccessoryView: UIView? { g...
alionthego
1

votes
2

answer
5.7k

Views

iOS 10 App Not Showing in Settings

I recently developed an iOS app using Xcode 8 beta. I ran it on my iPhone (which is currently operating on iOS 10 beta), and it worked fine. However, my app uses the camera, and I have been attempting to have the user go to settings, and enable the camera. But my app does not appear in the list of...
Pranav Wadhwa
1

votes
1

answer
433

Views

AVAudioPlayer Not Working upon SpriteKit Scene Loading [duplicate]

This question already has an answer here: AVAudioPlayer.play() does not play sound 1 answer I was struggling hardcore with a simple task: Play an audio file in the background when a SpriteKit scene loads. I copied an audio file named 'Test Song.wav' into my project and it was also found in my asse...
YJ Choi
1

votes
1

answer
1k

Views

No type or protocol named 'UIApplicationDelegate'

Just added a WatchKit target to an existing Xcode project. Boom! 13 errors without typing a single new line of code. The first error listed is 'No type or protocol named 'UIApplicationDelegate''. I was able to create a fresh project and add the WatchKit target without any problems. That makes me thi...
Troy Sartain
1

votes
1

answer
4.3k

Views

xcode 8,ios 10 beta very annoying bug(?): “os version lower than deployment target”

So.. I have downloaded xcode 8 and than installed ios 10 beta by using the configuration profile as advised in apple developer website.the install was successful and I can see the current ios 10 version in my device settings. my problem: Trying to run an ios 10 code (wwdc 2016 sample) I get an immed...
ohad
1

votes
2

answer
1k

Views

Stop tasks until AlertController action occurs Swift

I tried to execute a task from the completion parameter of present so that it would execute the desired function only after the UIAlertController closed. However, the function was called before the action was taken in the alert. How do I wait to execute the function until an action is taken? let ale...
Abhi V
1

votes
1

answer
112

Views

Project-Swift.h file failed to compile due to “Elaborated type refers to a typedef” error

Summary: I have added the StreamDelegate method public func stream(_ aStream: Stream, handle eventCode: Stream.Event) to my swift class and compiled the project. While generating Project-Swift.h, complier failed to compile and show error as Elaborated type refers to a typedef. Steps to Reproduce: 1....
Natarajan
1

votes
1

answer
486

Views

Swift Float80 data type not available in Xcode 8 beta

When I run my app in Xcode 7, the Float80 datatype is available and I can look at the source code by pressing command and clicking on the data type. In Xcode 8 beta, it only goes up to Float64, and Float80 is not included in that file anymore. Does Float80 have a different name now? Or am I missin...
tdon
1

votes
2

answer
284

Views

Are Doubles Comparable in Swift

Swift 3, Xcode 8β2. I've implemented a class that sorts Comparable data and attempted to test it using Doubles. Unfortunately, I'm getting the error 'Cannot convert value of type '[Double]' to specified type '[T]'.'. I've reproduced the error in the sample code below: class foo { let data: [T] =...
1

votes
1

answer
173

Views

Mach-O header code: 0x72613c21 when importing Microsoft Azure Mobile Framework

I'm running Swift 3.0 on Xcode 8.0 beta 2 on my MBP and I'm currently trying to integrate my application to Azure's server. I'm currently just trying to get the Swift 3.0 version of the example code to work. Currently I've just started the project and all I have is a ProjectName-Bridging-Header.hand...
1

votes
1

answer
220

Views

Extracting a texture in watchOS 3

I am using the following code in iOS 10.0 in my GameScene.swift //Shape storage let playerShape = SKShapeNode(circleOfRadius: 10 ) ...Color setup etc //Get the texture from shape node let playerTexture = view?.texture(from: playerShape) The same code doesn't work in watchOS 3.0 Xcode 8.0 beta 2 comp...
Mukund Agarwal
1

votes
1

answer
1.5k

Views

Xcode 8.0 beta3 AVAudioRecorder(url,setting) error catch - “Error Domain=NSOSStatusErrorDomain Code=-50 ”(null)“”

I'm trying to record the voice of the user and change it to a text data. I used AVAudioRecorder to record the sound and SpeechKit to change it to text which is included in iOS 10. When user touches down the button record starts and stops when button is touched up. But when I initialize the AVAudioRe...
Y. Koh
1

votes
1

answer
626

Views

Firebase linker error XCode 8 beta 2

I am trying to integrate Firebase in my iOS project without Cocoapods.I have followed all the instructions but I am getting a linker error on XCode8 beta2 as given below: My framework dependencies look like following: I would really appreciate if anyone could help me with this.
Vik Singh
1

votes
1

answer
828

Views

Xcode 8 XCODE_VERSION_MAJOR macro - Compilation issue

I have an iOS Project which is not compiling in XCode 8. if i fix the compilation issue, it is not working in XCode 7. But i need to make the project working in both XCode 7 and 8. so i am trying to use the preprocessor macro to do the conditional compilation i have defined the macro in the Xcode Pr...
jpsasi
1

votes
1

answer
101

Views

WKInterfaceController header typo in watchos 3 beta 6?

Is this a typo? @available(watchOS 2.0, *) open class WKInterfaceController : NSObject { public init() open func awake(withContext context: Any?) // context from controller that did push or modal presentation. default does nothing shouldn't 'open' be 'optional'? if it should be open could someone po...
Greg Robertson
1

votes
1

answer
685

Views

How to load and show window from xib file

I have made a window xib and cocoa class file (nswindowcontroller) and need to show the window from xib with an button action from main window.
mikmikkelsen
1

votes
1

answer
344

Views

Xcode 8 beta 6: Cannot validate sticker pack archive

I made a sticker pack archive and cannot get it to validate. I understand that Xcode 8 beta 6 cannot submit at this time, but can it validate for builds destined for TestFlight? I get this error: Permissions failure: Your account does not have permission to create iOS Distribution certificates I a...
CaptainQuality
1

votes
2

answer
1.4k

Views

How do you download the iOS 10 Documentation in Xcode 8 GM Release?

Cannot seem to find where the documentation is location or where to download it if that's possible.
shakked
1

votes
1

answer
157

Views

UIButton not showing on real device while running on Xcode8

Today i run my project on Xcode8. Before that it was executed good and shown all button properly. when i run project on xcode8 simulator and device. few buttons not visible on run time but action performing. Please assist me on this issue.
Sri..
1

votes
2

answer
968

Views

Value of type 'CustomButton' has no member 'touchDown'

I have created custom button class and override all touches methods. It works fine in swift 2 and Xcode 7.3.1. But when I open same app in Xcode 8.0, it will show errors : Value of type 'CustomButton' has no member 'touchDown' Value of type 'CustomButton' has no member 'touchUpInside' Value of type...
VRAwesome
1

votes
1

answer
1.8k

Views

Source control not working in Xcode 8

I have updated Xcode in order to program for iOS 10 and for some reason Source Control has stopped working. Im using Git connected to visual studio data repo, since at least Xcode 6 with no problem at all. I have checked the URL, User and Password and everything looks ok, I can use the Git with the...
1

votes
1

answer
149

Views

Xamarin builds failed with Xcode 8

I got the this error when rebuild Xamarin iOS after updating UI using Xcode 8: Xamarin.iOS.Common.targets: Error: Error executing task DetectSdkLocations I'm using Xcode Version 8.0 (8A218a) Xamarin 6.1 build 5441, Xamarin.iOS, Version: 10.0.0.6 (Xamarin Studio Community), Hash: 6c3fee4, Branch: xc...
lee5783
1

votes
1

answer
1.1k

Views

“Use Legacy Swift Language Version” (SWIFT_VERSION) Error When Publishing Cocoapods

I am trying to publish this library https://github.com/ankurp/Dollar to cocoapods using the following command pod trunk push Dollar.podspec --allow-warnings --verbose and getting the following error which is preventing the publishing of the library to cocoapods. There is no build errors and all test...
Encore PTL
1

votes
1

answer
417

Views

Xcode 8 importing StoreKit.framework cause error while archiving

in my app I imported Tune.framework for monitoring install, updates and other custom event. Now I have upgraded from Xcode7 to Xcode8 and I need to import StoreKit.framework which causes the enablement of In-app purchase capabilities. So far, so good... the problem came when I try to archive the app...
Fry

View additional questions