Newest xcode Questions

Q&A for professional and enthusiast programmers

Fabric twitter, memory leak at init

I have detected memory leaks when initializing fabric Screenshots from leak instruments Any idea how to resolve this leaks ?

Xcode 8.3.1 says to replace size with coder what does this mean?

Incorrect argument label in call have "size" expected "coder " Any help ? lass GameViewController: UIViewController { var scene: GameScene! override func viewDidLoad() { super.viewDidLoad() ...

How to create a Cocoa Touch Framework from a C library?

We created a Cocoa Touch Framework named SignalProtocol, selected Swift as the language, and added the files from libsignal-protocol-c to our target. Everything compiles, and we're able to import ...

My app only asks for push-notifications permission but not for location. How can I fix that?

In my app I have both of these lines: manager.requestAlwaysAuthorization() UNUserNotificationCenter.current().requestAuthorization(options: [.sound,.alert], completionHandler: {didAllow, error in}) ...

Renew iOS Distribution Provisioning Profile

A few years ago I wrote an iPad app that was to run on only a few of the client's iPads. They're currently having issues with the app exiting upon being opened. It turns out this is due to the dev ...

Xcode 8.3.2 doesn't work with Alamofire 4.4.0

Running my project, which uses Swift3, with Xcode 8.3.2. I face this issue: Alamofire Issue - “Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use ...

Xcode 8.3.2 crashes when building some target

I've updated to Xcode 8.3.2 today.The target was normal when xcode was 8.3. The exception log shown below

How to fix this UIWebview error

Error : Error Domain=WebKitErrorDomain Code=101 "(null)" https://foursquare.com/v/Gran_Hotel_Ciudad_de_México/4c0acaa1a1b32d7f09ff99f0 This was the URL I was trying but the uiwebview gives out the ...

How not to import header file outside of a framework

My Xcode project has some embedded frameworks. I want to completely separate them. The problem is that any header file inside project can be imported from other framework in same project. MyApp/ ...

Font not found SKLabelNode warning in Xcode Log

I am using sprite kit to create a custom view in my apple watch. I have added a custom font to SKLabelNode. That font is applied and works too when I run the code in my device and watch. But every ...

Xcode 8 Storyboard ignores status bar when iphone + selected

i have a problem with autolayouting in xcode 8. I have finished app with UITabBarViewController embedded in NavigationController (that means that i have top and bottom bars available). On that screen ...

get dynamically loaded html using alamofire + swift

I am trying to request a website's html code and use it in an app in Xcode (Swift 3.0) and the pod Alamofire. In the html code online, the data contents that I want to scrape are in a div class that ...

Google Books Oauth access token authorization error

Hi i have been developing an app that would let the user search for the books using the Google Books API. Everything was working fine until i wanted to access user's favorite books, add and delete ...

Could not determine generated file paths for Core Data code generation

I pulled my project from source tree to a new system. While trying to run the app the app build failed with error: Could not determine generated file paths for Core Data code generation: Error Domain=...

Animate cells in a collection view

I have a horizontal collection view, which has one row. I want that the first time the view controller loads my first cell animates in from the left and subsequent cells animate in from the right. ...

How to see external resources in Xcode?

I removed a file from a folder outside of my project. I got a warning from Xcode telling me I removed a file which it needs in my project. I had to unremove that file to make my project run again. ...

mac OS using MediaLibrary - how to define which Photos Library is loaded?

I'm sure this is right in front of my face, but I'm a bit of a nooob... How can I define which Photos Library is loaded vs the current method which loads the System Library? I presume it's ...

Xcode resolving merge tree conflicts

I'm kind of new to xcode and git and I'm trying to merge my branch called SignIn into the master branch. I'm getting all these conflicts & I'm unsure of how to solve them. I've tried force ...

Getting error in browser saying variable can't be found?

Trying to use constructor function to update the object classes of a book using a button click. I keep getting errors saying that the 3 variables (book1, book2, and book3) cannot be found. Not sure as ...

UITabbarcontroller with slide right transparent menu

I'm building an app that have a menu slide right with transparent view (shows the last opened viewcontroller from tabbar should be under the menu view) the attached Screenshot will let issue's image ...

How to move/animate UITextField placeholder text

On many applications the placeholder text both changes, and animates when the text field is selected. Is this ability stemming from some property of UITextField.placeholder or are the developers using ...

Going from a SKScene back to a storyboard view controller in swift 3

Currently, I have a game set up where I launch in a storyboard menu scene. There then is a way to go into the game and this works successfully. The problem is when the game ends and it is time to go ...

“…” occurs when try to change label in Xcode/Swift

In Xcode, whenever I try to change the text in a label, it will always appear as "..." on my screen. Is this because the labels are being too confined into the stack views, and if so how can I fix ...

Receipt validation iOS - The file could not be opened because there is no such file

I'm working on a subscription IAP. I set all purchases up, their details come back well, I can do the purchases in sandbox and get all the messages alright. The problem I have now is checking the ...

Nav controller back button needs to update table view after core data object is deleted xCode 8.3.1

I've been through all the Q&A that relates to this problem and either the code is too old and/or it won't run or the issue is too simple (i.e the method for sending simple data like a basic string ...

Why does my Navigation Bar disappear in Xcode?

I have a navigation bar on my Table View Controller. When I run the simulator and navigate from the menu via UIButton, the navigation bar appears on the controller. However when I navigate to another ...

How to load google Drive keychain and upload file from Share extension in Swift

I created share extension to upload data to google, I have auth in my app and save keychain. In share extension I load auth in below code: if let auth = GTMOAuth2ViewControllerTouch....

Are some files (like pictures) erased when re-launching a cordova iOS app from xcode?

I'm working on a Cordova app for iOS and I've run into something strange. I have the files in the app being stored in persistent storage (I'm sure of that). If I hit the run button in xcode while the ...

How can I replicate the 3D look of a fully opaque CSS box-shadow in XCode with Swift?

Here's what I'm trying to replicate: The relevant CSS is: .tile { background: linear-gradient(to top, #ffffff, #cccccc); border-radius: 18%; box-shadow: 0 .2em #999999, 0 .35em .15em ...

Create IBOutlets from embedded UITableView

in my XCode Project I have a standard view with an UIView sitting in it. Within that UIView, I embed a TableView with static cells. Now I am trying to get some IBOutlets from the embedded TableView ...

Where integration bots are stored?

Where does OSX Server store integration bots? Or is it my local Xcode who stores them? Server screwed my setup again, but this time I'm no longer able to see my bots. Just want to express my deep ...

unable to resolve this No matching provisioning profiles found: No provisioning profiles matching an applicable signing identity were found

I am getting the below error, When i trying to archive on xcode. In general tab, also shows below one. I have created only provisioning profile for development. No matching provisioning profiles ...

Jenkins job to update ios project

Are there any jenkins plugin available that helps updating an ios project for example change app icon, splash screen before generating a build? I want to create a jenkins job that is able to perform ...

Xcode compilation errors with external library (OSX program)

I have a simple "Hello world" type program in Xcode and I'm trying to use an external library in that, but I'm getting compilation errors. The library is the Magtek edynamo macOS sdk: https://www....

Xcode displayed error while complier start to compile

I constructed one project .The dependency is managed via cocoaPods . When ran the project.It occurred errors as below: Ld /Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-...

Vertically align bar buttons inside toolbar

I am currently using the following code to display a datepicker when a user clicks on a UITextfield. This works fine, but the problem is there left and right button are not properly vertically center ...

How to make DerivedData or Build Location in XCode to be relative to project

I have multiple pbxproj files in my xcode workspace. By default all build outputs and temporary .obj files go to some random location in xcode and I would like to make all that output go to path ...

How to connect dynamic tableview cells to different view controllers in xcode 8

I'm working with dynamic table view cells, how do i connect different view controllers to different cells assuming this is a menu system? Please help!

How to Take a Full Screenshot on iOS Simulator [duplicate]

When developing apps that have ScrollView content that is larger than the screen, is there a way to capture a "full screenshot" of the entire screen. Currently, the screenshot option in File > Save ...

AnnotationView open when searching

I have a map search controller that when I search for some annotation, its zooming on it . Also I would like that when I press the result it will zoom on the correct pin and automatically open the ...

Return to a view Xcode

I'm working on a project in Xcode. My tab bar was disappearing after segue to different views. So I created several navigation bars between my tab and my views. But when I'm on my views and I try to ...

Zoom images in ScrollView

I have a scroll view with some images in it, which i scroll horizontally. I want to zoom using pinch gestures. This is the code I'm using, but it isn't working. I can't seem to figure out what I'm ...

System requirements for Mac CI server

With Apple's new gen Mac Minis, it doesn't seem like the user is able to do much upgrading after buying the system so specs have to be decided and finalised at purchase time, which brings me to my ...

Apple Mach-O Linker Error when trying to use RestKit

I installed cocoapods and it shown as below Analyzing dependencies Downloading dependencies Using ISO8601DateFormatterValueTransformer (0.6.1) Using RKValueTransformers (1.1.3) Using RestKit (0.27.0) ...

IOS app runs in simulator but failed in IPhone

I have a problem with IOS app which is developed using Xamarin Forms. I'm running the app in IOS 9 simulator through MAC Agent which is connected to my Visual Studio (2015) in Windows 10 machine where ...

Is there a restriction on how low one can set the deployment target when submitting to the app store?

I have about a 200+ iPads (1st generation), that my company uses. They work fine (like new). The latest version of Xcode only lets you set a deployment target of 8.0. I can download an older version ...

Which is best source to store Tree sturcuture for swift-ios? [on hold]

i have big trees. which i want to store in app.can anyone suggest which is best storage among this Core data ,sqlite ,json ,xml ? and how can i store tree?.i also attached screen shot for demo-tree ...

can we Disable taking screenshots in own app ? using objective-c,xcode?

I want to make an app in which users can't take screenshots,so is it possible in objective-c?

iOS reverse engineering After modifying the __RESTRICT crash

Log: Apr 25 09:33:53 iPhone SpringBoard[310] <Notice>: MIS: Could not copy code directory hash. Apr 25 09:33:53 iPhone SpringBoard[310] <Notice>: MIS: Could not copy code directory hash (...

Can we build or archive an macOS app dynamically from another macOS

I have an application named saverBuild. And I want to archive another application named saver (a screensaver app) when a button clicked from saverBuild. Firstly I created the saverBuild and added a ...
Translating... 0%