Tagged Questions
Xcode is Apple's integrated development environment (IDE). USAGE NOTE: Use this tag only for questions about the Xcode IDE itself, and not for general Mac or iOS programming topics. Use [cocoa] for Mac programming questions, and [cocoa-touch] or [ios] or [Swift] for iOS programming questions.
0
votes
0answers
22 views
Incorrect frame of UIScrollview in viewDidLayoutSubviews
I am using Xcode7.3.1.My ViewController contains structure like
UIScrollview->UIView->UIScrollview. I am using auto layout for these view.I tried to print my inner scrollview frame in ...
0
votes
0answers
10 views
Xcode CI - How to specify in a bot which development team and provisioning profile to use?
I am setting up an Xcode bot to build and upload our AdHoc app to Crashlytics, and am having issues specifying it to use our Enterprise team and adhoc provisioning profile.
I tried adding these in ...
0
votes
2answers
20 views
Swift 3: How can I add the buttons on the UIWeb View
I am doing a project and I want to add 6 buttons on the webview , but whenever I am trying to add a button, the app doesnot show this button.
Any suggestion, help really appreciated!
Thanks
0
votes
1answer
16 views
Thread 1: EXC_BAD_INSTRUCTION Issue with dismissing keyboard and nil values (.isNaN)
I'm making a calculator app that solves for the missing variable and I've added a piece of code that dismisses the keyboard by tapping anywhere on the screen or pressing the "return" key.
This ...
0
votes
2answers
13 views
Reuse of adhoc distribution profiles
Is it possible to reuse adhoc distribution profiles and certificates which are created for another ios app in my ios application or Do i have to create new ones to distribute my application.
0
votes
1answer
17 views
Apple Development/Distribution certificates among individual account developers
I have been search all over the place for a proper answer about handling certificates. Imagine the following account.
Joe has an Individual Apple Account. But he cant code at all. He just publishes ...
-2
votes
0answers
8 views
Xcode says simulation still running after quitting the simulation
Using Xcode 8.1 and I run a simulation. The simulations work fine, but once I close out of the simulation by quitting, Xcode still tells me that its "Running [title] on iPhone 7 Plus". I hit the stop ...
-4
votes
0answers
8 views
Can anyone tell me what this code does and how the stack is used?
Below is an example of a powerful programming tool. It is also an example of how a stack is used internally by
tell me what the code does, what is it called, and how the stack is used
by Friday at ...
0
votes
0answers
18 views
Swift 3 no such module within Xcode 8.1
Consider me an absolute newbie for Swift 3. Everything I read seems to contradict each other. I am trying to test the MongoKitten module.
I managed to create a simple Xcode 8.1 project with my ...
1
vote
0answers
14 views
Xcode 8.1 frameworks codesigning is slow
On Xcode 8.1, when i build or archive, the frameworks codesigning takes crazy big amount of time. Like i see following (see screenshot) for 5-10-20 seconds for each framework/dylib i use in my project....
-1
votes
1answer
15 views
Is it possible to create a .xcarchive directly within from XCode 8?
Many iterations ago XCode used to have a direct command to create an .xcarchive, now its gone.
Googling this for other answer people answer about creating an .ipa, but an ipa is not the same as a ....
0
votes
0answers
10 views
Can't build project with Alamofire 4.1.0, Xcode 8, and Swift 3 - no such file or directory
I have an iOS project that I haven't updated in almost a year, but now I need to add a feature. After working through the normal headaches of having to update Swift (since I have updated Xcode in the ...
-2
votes
0answers
7 views
Xcode View Rotation
I'm desperate for some help on my swift project. I have a UIImage with a background of a number bond. On top of this I have a UIView (blue square). When I rotate my device, I want the blue square to ...
0
votes
3answers
9 views
Uploading multiple binaries simultaneously to itunesconnect
I have a multiple lite and paid apps and it gets annoying to submit a binary and wait for it to finish processing before doing the next one every update. I heard you can submit multiple binaries at ...
0
votes
0answers
7 views
Copy Framework from Target of existing Project
I want to copy the SplashScreenUI.framework from an existing Project into my own Xcode Project. I tried to just drag and drop the framework to my framework folder. It works to run on simulator, but I ...
1
vote
1answer
20 views
Build Swift 3 in Terminal to create XCode project
It seems Apple changed this line:
swift build -X
This no longer works to create an Xcode project as described here
Doest anyone know the updated way to do this as I cannot find it online
Thanks
-1
votes
1answer
11 views
phonegap cant install cordova camera
Hi I'm trying to write an IOS app with phonegap that uses the camera, i have all the code etc but I think i'm missing the camera plugin for xCode as its not in the plugins directory when i build the ...
0
votes
0answers
9 views
iOS10 filesystem - are files no longer in app container?
For debugging purposes I've often written data to files on iOS using code such as this...
NSString *docsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) ...
0
votes
0answers
17 views
background image animation swift 3 Xcode 8.1
i make background image for viewController using the following extension:
extension UIView
{
func addBackgroundImage1() {
// screen width and height:
let width=UIScreen.main.bounds.width
...
0
votes
1answer
4 views
Xcode CI - Bot script for uploading to Fabric gives error “Failed to Detect Build Environment”
Trying to setup an Xcode CI Bot to build and upload my app to Fabric for beta distribution.
The bot builds and archives the app just fine, but fails on the Fabric upload script. Any suggestions?
Log:...
0
votes
0answers
9 views
How to escape a string variable in Xcode CI - ${XCS_PRODUCT}
I need to use the path to an IPA that is generated during an Xcode Bot build script, and the path contains a special characters and is causing errors when I try to use that path to upload the IPA.
...
0
votes
0answers
6 views
CMake and Code Signing in XCode 8 for iOS projects
CMake was able to configure automatic code signing for XCode <=7 and iOS projects with a target property setting like
set_target_properties(app PROPERTIES XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "...
0
votes
0answers
7 views
Xcode export for localization xliff format
When I click on Editor > Export for localization to get my .xliff file, there are some formatting errors that I cannot figure out how to fix.
Xcode is converting \n into a literal new line.
Here ...
0
votes
0answers
6 views
How to cross reference Instruments Profile with Samples
I'm in Instruments 8.0
I'm using a Time Profiler in Instruments, watching an XML parser do its work.
I'm trying to find a convenient way to cross reference the items I find in the Profile view (...
0
votes
0answers
23 views
Keep the app running after the screen is locked
I'm developing an audio player in xcode 8, swift3 targeting iOS 10+
The app works by calling an API through https, the API returns a link of an audio file and the app plays the file, after the file ...
4
votes
1answer
33 views
Delegate method called twice in Xcode 8.1/Swift 3.0 with debugger breakpoint
I have a problem with xcode 8.1/swift 3. I think it might be a bug in the debugger XCode software but thought I would see if anybody sees something I am missing. I am working on an ios application ...
0
votes
0answers
11 views
Archive fails on Xcode 8
I am trying to archive a swift 2.3 app on xcode 8 that builds and runs without any problem.
I keep getting this error:
"/usr/bin/codesign --force --sign 55C4D289B0A1E306AF3E751D33043601B9E6EF39 --...
0
votes
0answers
11 views
UIPageViewController not push another view
I have a pageViewController that is called HomeViewController. Inside it I have three views called Overview, Finance and BSC.
On the third screen (BSC) I have a collectionView. How can I push to ...
0
votes
0answers
10 views
CxCallAction for speaker button in ios
I want to make an app for an academic purpose. When in a call between two persons one of them presses the speaker button the other person is informed by push notification or via sms that the speaker ...
0
votes
1answer
19 views
Missing Swift files
I don't really understand what's hapening but I'm not able to see all my Swift files on Xcode project navigator, but when I open my project directory I see them all, it looks like reference problems.
...
0
votes
1answer
7 views
Do you know a good tutorial for helping me to learn to introduce to my app the facebook login button?
can you help me with a good tutorial or codes , please?
0
votes
0answers
20 views
Unwanted space at the bottom of View after UILabel using ScrollView
I have got a view which I have attached as screen shot, I have got unwanted space at the bottom of the second UILabel, the content coming into that UILabel is from a web url JSON using Alamofire. I ...
0
votes
0answers
25 views
PushViewController didn't work
I have a simple app, with only 2 empty page, the first one have a button, for call an action, with the code:
let story = UIStoryboard.init(name: "Main", bundle: nil)
let vc = story....
0
votes
0answers
16 views
How do you rescue a view that attempts to break a boundary?
I have a container view that will serve as a boundary for labels in my project. I have a feature that allows users to change the size of the view however this often or not can be problematic for ...
0
votes
1answer
26 views
Swift on Mac terminal
Formerly I used FreeBSD and NetBSD. Mostly I code C on Command Line Interface (CLI) with vim editor.
Now I am using macOS. As I get used to CLI, so when I code swift on macOS, I opt console.
I've ...
0
votes
0answers
15 views
Building an embedded framework for WatchOS and iOS in XCode 8 with Swift 3
I am in the process of porting an all iOS + WatchOS 1 app written originally in Swift 1, to the latest XCode 8, WatchOS 3, Swift 3.
My app has an embedded framework with some common functionality ...
0
votes
1answer
17 views
How to read Crash log and find clue on Xamarin.forms' iOS?
I'm making app with using XF PCL.
On my iOS app, it crashes sometimes while it's on background.
I found crash log on my iPhone and look.
But It's hard to understand nor find where was the problem.
...
0
votes
1answer
28 views
Bridging swift code into obj c project
I added the swift bridge and changed the proper settings to allow swift in the objc project. But my big issue is that the swift3 code that I am trying to bridge is coming up all errors in my project ...
0
votes
0answers
25 views
How to set two scrollable view
I want to work with to view, when we push on a button of the first view we go on the second view by hiding the first view.
The 2 views have different heights... So heres my hierarchy:
-> Main View
-...
0
votes
0answers
5 views
phonegap console log on ios Simulator
I am new to phonegap and i have followed many suggestions to use safari to debug inside the ios simulator. Surely, I can see the html elements in safaris developer console but what I cannot see are ...
1
vote
1answer
4 views
CocoaPod Storyboard error:
I made a cocoapod to include in my main project, it was the splash screen animations which would be used while the app was loading which page to go to. Everything builds fine in the cocoapod project, ...
0
votes
1answer
10 views
AKSwiftSlideMenu activity indicator
I am using the AKSwiftSlideMenu project from the web and trying to put an activity indicator so it will display the indicator when the user pressed the menu bars on the top right. I tried everything. ...
0
votes
0answers
20 views
Converting CountElements to Swift 3 not working when trying to shorten text [duplicate]
Hey I am having a problem trying to convert this old code into swift 3:
func textViewDidChange(textView: UITextView) {
let components = self.txtBody.text.componentsSeparatedByString(" \...
0
votes
1answer
8 views
Unable to install AppStore version directly to mobile device when using an iOS App Extension
At our company the process we execute normally is:
fix/implement
test ad-hoc version
create AppStore package
test that AppStore package by installing it directly through iTunes.
submit version to ...
0
votes
0answers
14 views
Facebook Like and Firebase Messaging conflict
I have a problem in my app. I'm using Firebase Messaging for RemoteUserNotification and Facebook Like method, and when I'm tapping on FBSDKLikeButton I have this text in debugger:
[MC] System group ...
-1
votes
0answers
12 views
xcode remove architectures run script is showing find: ftsopen: no such file or directory error
I had the same problem, and solved with same solution, as here:
Submit to App Store issues
On a new project I am using the run script again but it is producing the following errors when I run the app ...
0
votes
0answers
12 views
Draw mathematical functions as shapes on mapview in xCode
I am working on an app in which I want to project the planets' orbits in scale over my home city.
I have set up a mapview in xcode centered on my city.
I know it is possible to draw circles of a ...
0
votes
1answer
50 views
UIApplication.sharedApplication.open() doesn't load url
I'm working with Swift 3 and Xcode 8 (iOS 10.1), I'm completely new to the whole world. :)
I'm authenticating against an external app to get an access token. The use case is:
1) Load external app ...
1
vote
1answer
24 views
How to set Entitlements for finder?
I need to use an AppleScript in my app with enabled sandbox. Just using things like "tell Finder to bla-bla-bla". Very simple. I got that I need to make a record for finder in Entitlements something ...
0
votes
1answer
27 views
Storyboard and xib do not show freshly added elements
After updating to Xcode 8.1 our storyboards and xib are as usual. If we create a new xib/view/storyboard we can't see the freshly added elements in the new view.
Both of these are xib files. The ...