Questions tagged [xcode]

55446 questions
1

votes
0

answer
832

Views

iOS-Mobile Number validation based on Country

I have been working on iOS project where the requirement is validate international mobile number based on country code. I have used the phonenumberkit iOS library but I cannot validate mobile number using following code . static func validatePhoneNumber(cellPhone:String,countryCode:String,countryNam...
Srini
1

votes
1

answer
275

Views

How can I fix the following error in Xcode: Key Commands must all have a Title, Key, and Selector? [duplicate]

This question already has an answer here: Key Commands must all have a Title, Key and Selector 3 answers I have been trying to figure out why I am getting this error: Key Commands must all have a Title, Key, and Selector. Every time I open a new project, this error occurs before I change anything....
Jack Nordquist
1

votes
1

answer
308

Views

Xcode project keeps crashing after converting to Swift 4, “Class implemented in both…”

I recently converted an Xcode project to Swift 4. I fixed all the syntax errors. However, my app now crashes, after outputting an error message which starts Class MPExportableArtworkProperties is implemented in both... I have been looking around S/O but all I find is that its related to MapBox whic...
Jonathan Nairn
1

votes
0

answer
67

Views

Keeping apps tamper proof

Currently designing an iOS app that has functionality including the transfer of in-game currency to real-world currency. ( within Xcode using swift, it’s a mobile game ) Since this app includes the prospect of real money, I couldn’t help but feel that people would tamper with the game mechanics...
callum schenk
1

votes
1

answer
184

Views

“Italic” does not work in UILabel in Xcode -iOS

I am trying to design a view as attached, however, my label text is not 'Italic' as I have already set in label attribute. Tried to find solutions, but seems like all is programmatically adjustment. Is there anything I miss out to config 'Italic' in storyboard directly?
Peter Guo
1

votes
0

answer
178

Views

Error with compiling dlib to Xcode

I had compiled dlib to Xcode with reference the site of 'http://prabhu.xyz/2017/05/29/getting-started-with-dlib-on-ios.html' I followed the steps just like the site has mentioned, but I received the error messages: https://github.com/hsmlee/dlip-error/blob/master/README.md I have tried to find the r...
Hsmlee
1

votes
0

answer
347

Views

Swift class in ObjC Project : Receiver 'MySwiftClass' for class message is a forward declaration

After spending a few hours to integrate swift files successfully to my Objective-C based iOS project, I face the next challenge now : In one of my Objective-C class header (Say, MyObjCClass.h), I do the forward declaration for MySwiftClass. In the respective .m file, I define an instance of MySwiftC...
Harish J
1

votes
1

answer
78

Views

ObjectiveC framework not export some classes

I have developed a tool called EzoRed (ezored.com). It generate a framework for ios or aar for android with native code (c++). When i get the generated xcode project and drag/drop into my sample project, i use the framework without problems. When i drag the generated framework only (With Debug versi...
Paulo Coutinho
1

votes
1

answer
26

Views

Google UIAutocompleteResultController for ios

I want to add pre-defined text on in the result controller, is there any way that it is possible?
makkhokher
1

votes
1

answer
142

Views

how to pass data for a viewController through a PageViewController to a second ViewController of the pageViewController

im new in this and Im trying to pass some variables for a viewController through a pageViewController who manages 3 viewControllers and use those variables in the 3 controllers, can anybody help me? here is my code on swift... I send my variables with this: public var lenguaje = '' public var usern...
Kevin Arvizu
1

votes
1

answer
269

Views

Xcode - Is there a Storyboard keyboard shortcut to open an object's custom class?

If you select an object/element in the Interface Builder and open the Identity Inspector, there is a right-arrow button in the Custom Class section to navigate you to that custom class's source file. Is there a keyboard shortcut for this button? It's something that I frequently do and I feel like th...
bonuelc
0

votes
0

answer
6

Views

Issue with singleton being destroyed but only when debugging in Xcode

My project works fine in unity, this issue only happens once I have built it and run it in Xcode. My player object has a singleton attached to it. Switching scenes still causes it to be destroyed (but not any other game objects with singletons attached to them, like the game manager). I found every...
Ashlyn j
0

votes
0

answer
5

Views

MTKView Drawing Performance

What I am Trying to Do I am trying to show filters on a camera feed by using a Metal view: MTKView. I am closely following the method of Apple's sample code - Enhancing Live Video by Leveraging TrueDepth Camera Data (link). What I Have So Far Following code works great (mainly interpreted from abov...
Gizmodo
1

votes
0

answer
19

Views

How to integrate Firebase with app in Xcode?

Every time I try to run Firebase Server in my app I get a thread signal SIGABRT. I have plugged in the code correctly as I was told. I need to know if I'm missing a critical step on maybe a Podfile issue. I have cleaned my app, deleted my screens, and started fresh, so it's not an outlet problem. I...
Kyle Davis
1

votes
0

answer
8

Views

Failed to build IONIC Geofence on XCode

I am using Geofence plugin on IONIC. When i build on XCode 10.2 it's say : 'Unsupported Swift Version. The target 'MyApp' contains source code developed with Swift 3.x. This version of Xcode does not support building or migrating Swift 3.x targets. Use Xcode 10.1 to migrate the code to Swift 4' But...
Sahadewa
1

votes
0

answer
211

Views

'React/RCTRootView.h' file not found after detach from expo

I created a new project with expo and detached it. When I try to run the iOS project in XCode, it gives an error 'React/RCTRootView.h' file not found If I create a new project with react-native init instead, I'm able to build with react-native-navigation successfully. Why does it fail with expo? Ste...
Avery235
1

votes
0

answer
190

Views

ARKIT stereo - move objects

I have two ARSCNView sessions side by side for stereo view. I am trying to create a box in stereo view and then make it spin. All works fine until I move the parentNode using self.parentNode.runAction The movement only occurs in the right side view (SceneView2). No movement occurs in the left side v...
V S
1

votes
0

answer
25

Views

Setting a new SKScenes Background will not work

I cannot seem to set the background color of a new SKScene I have created: override func didMove(to view: SKView) { self.backgroundColor = SKColor.black } No matter what I change it just remains a grey background. This is how I'm loading the new SKScene(inside of touches began): if (label).contai...
Kingsley Knight
1

votes
0

answer
100

Views

Stack view constraints changes top-layer's view width

I have a stack view holding 2 images. One image's width to be lower or equal to 140 and 1:1 ratio Stack view top constraint 20 and trailing constraint 5 When I want to set the stack view leading constraint to 5 (looking at the safe area leading) it enlarges the safe area to a width of 1920 and I hav...
Jeroen Beunckens
1

votes
0

answer
19

Views

Cocoapod modules not available in Pod Example project

I created a new Pod project and included an example project when running through the pod lib create ProjectName setup steps. I've added some classes to the pod and although I am able to use them in a separate project that includes my pod either locally or remotely, I can't use them in the Example pr...
Cbas
1

votes
1

answer
34

Views

XCode and Git: Opening branch in XCode always makes changes to the project file

I just started at a company that uses Git, I was previously at a company that used SVN. We've got many branches off of our master and every time I check one out and open it, XCode makes changes to the project file or to a storyboard, even if all I did was opened it to review. For example, on Branch...
PruitIgoe
1

votes
0

answer
149

Views

Xcode cannot access to my iTunes Connect account

The newest version of Xcode cannot access to my developer account. I can log in using itunesconnect.apple.com without any problems. I have logged in to Xcode in Preferences but when I upload my app archive I have an error: I'm trying to use Application Loader, but I have another error when I'm tryi...
Ruslan Tereshchenko
1

votes
0

answer
43

Views

I have trouble with Message Filter Extension about extracting time or state of message handled

I'm building an app that has Message Filter Extension. And I need to know what message was filtered. But I don't have permission to write in share groups. What I need to know just time and state of message. I have tried so many ways but they did't work .
Huy Bùi
1

votes
0

answer
176

Views

On-demand resources - Force purge/clear of downloaded resource bundles

I have an swift4 app that is having certain issues where on-demand resources packages hang when downloading. The issue appears to be related to different versions of resource bundles being used in testflight environment as opposed to prod. Some users indicate that the packages do not download, but a...
Villainsoft
1

votes
1

answer
46

Views

How come Xcode Stops letting me hook up IBOutlets after two Interface Controllers?

I was setting the IBOutlets for the first few objects of a Watch App. However, after doing a few IBOutlets it stops once I get to work on the third InterfaceController, closes InterfaceController.Swift, and instead opens WKInterfaceController.h. It does this every time I try to add the label or but...
user9023136
1

votes
0

answer
19

Views

Shortcut replay last UI test on XCode?

Is there any shortcut to replay the last UI test on XCode? or does it need to be configure through XCode preferences?
tiguero
1

votes
0

answer
238

Views

Player data archive not found at '/var/containers/Bundle/Application/…/GameName.app/Data/data.unity3d' When creating build of unity project in iOS

I'm trying to generate build of unity project for iOS. After switching my unity platform to iOS and click on build button, it generates Xcode project for iOS build. When I try to build my game in Xcode for generating build it shows error in log which is following -> applicationDidFinishLaunching() P...
Farhan
1

votes
1

answer
63

Views

Having trouble displaying contacts with special characters on TableView

I've got a problem populating my table view. Currently, I'm creating a phone book. This phone book will simply contain contacts that are fetched with the help of the Contacts framework. These contacts are separated into sections alphabetically. Sadly, although my contacts are well displayed alphabe...
1

votes
1

answer
3.9k

Views

Cannot convert value of type '()' to expected argument type 'String'

I am taking the zip code entered by my user and converting it into a City name. After it is converted to the City name I will save the information into my Firebase Database. I am getting an error 'Cannot convert value of type '()' to expected argument type 'String'' when I try to do this. I am getti...
hg56
1

votes
0

answer
39

Views

Reading a file with paragraphs in c

So I'm trying to read a text file with multiple lines of words and I would like to store in an array. I have tried this code: #include #include int main(){ FILE * fptr; char str1; fptr = fopen ('test1.txt', 'r'); printf('\n The content of the file is :\n'); str1 = fgetc(fptr); while (str1 != EOF)...
Danwoo
1

votes
0

answer
17

Views

Customized documentation comments in Xcode

I know there is an integrated documentation comment generator using key option+command+/ in Xcode instead of VVDocumenter from Xcode 8. And it will automatically generate comment of a method like the following: /** Some Description @param someParam description of param @return descripti...
Zeman
1

votes
0

answer
33

Views

how many atlas's get loaded when using scene editor and sktexture()

Building a 2d platformer game and I build out my levels visually in the scene editor of the sks files. I store my textures in atlas folders, not within the xcassets. In the scene editor my levels use images from the atlas files. Assuming we are talking about 1 atlas folder that atlas get's loaded i...
Discoveringmypath
1

votes
0

answer
44

Views

Defining a container view as member

I have a container view and I want to have it as a member in another view so that I can use its name for actions. I want to add this line: @IBOutlet var buyContainer: UIView! but it doesn't seem to work. I try to right-click and drag the container view to the main view's code, but it just switches t...
MathEnthusiast
1

votes
0

answer
74

Views

Implementing FirebaseAuth in Swift 3

I'm using xcode 8 (swift 3) for creating some app, and I have problem with creating Register class. As you probably know Firebase was recently updated, so there is no tutorial for newer version. I was following this tutorial, but without success: https://www.appcoda.com/firebase-login-signup/ import...
Martin Pošmuga
1

votes
1

answer
209

Views

IOS 11 Update changed color of my nodes

This post is regarding an app that I already have in the AppStore. Its not been updated for months now so I'm totally sure that the version in AppStore was working before the iOS 11.2 update. Here is the problem/bug: In the app you can choose between different types of dice to roll in AR. You can s...
Magnus T
1

votes
0

answer
142

Views

Loading Information onto XIB files from Firebase with Koloda View

I just started programming with Swift a few months ago so to help me learn, I'm working on a project similar to Tinder using Koloda View. I'm using Firebase as my backend. The code I have included below works fine with 6 images assets of cards but I'm trying to figure out a way to create a card for...
A. Albert
1

votes
1

answer
291

Views

xcode ios - how to make an image fit into different screen sizes

I am making an iOS app. Basically several login fields with a logo on top. The storyboard should simply fit device screen width. I have started with a Scroll View (to make sure everything is available when the keyboard pops up). The Scroll View has constraints: top 0, left 0, right 0. Then I have pu...
filo
1

votes
0

answer
128

Views

Xcode 9 error After installing Realm in react native for local storage

Xcode 9 error after installing Realm in React-Native for local storage. can't exec 'myPath/Source/node_modules/realm/src/../scripts/ccache-clang.sh' (Permission denied), failed with exit code 71. Help me to resolve this error. Thanks
manoj
1

votes
1

answer
125

Views

Xcode 9 (Objective-C): Loading Custom XIB causes errors NSUnknownKeyException this class is not key value coding-compliant for the key [duplicate]

This question already has an answer here: What does this mean? “'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X” 66 answers I've been doing .net core stuff lately and I have started again with Xcode (and rusty) this time with Xcode 9. I created a...
VinceV
1

votes
0

answer
164

Views

Trouble using UILocalizedIndexedCollation to filter a table view with the inputed user's name.

I'm new to this forum! I am having a little bit of trouble sorting my Person's array with the use of UILocalizedIndexedCollation. Code I created the following class: @objc class Person : NSObject { @objc var firstName: String! @objc var lastName: String! init(firstName: String, lastName: String) {...
ozark

View additional questions