Xcode

Build, test, and submit your app using Xcode, Apple's integrated development environment.

Xcode Documentation

Posts under Xcode tag

1,522 results found
Post marked as unsolved
18 Views

Macbook Pro 13" or 16" for developing

Hello everybody, I want to buy my first MacBook Pro and i am a CS student. Now i want to learn ios-App development, but i can't decide between the: MBP 13" | i5 10th. | 32GB | 512GB MBP 16" | i7 9th | 16GB | AMD Radeon Pro 5300M | 512GB I will also run a VM on the Laptop for my university stuff. Which one would be the best for the next 3-4 years? Thank you!
Asked
by nedzip_oe.
Last updated .
Post marked as unsolved
9 Views

SourceKitService is stalling the iMac

Sometimes it comes back. SourceKitService is never-ending reading gigabytes from the disk. There is a so much disk use that Xcode and other application suffer and are sometimes stalled. I don't think killing it is a good idea but I hope to find a solution to avoid this penalty.
Asked
by Luca_65.
Last updated .
Post marked as unsolved
11 Views

Both in safari and safari preview simulator debug option not showing

Hi , Am running simulator want to debug in safari but in develop option of safari not detecting the simulator .tried safari and safari preview as well issue started after updating OS Mac OS 10.15.6 safari preview 110 Xcode 11.6 Please help . thanks in advance.
Asked
Last updated .
Post marked as solved
32 Views

How to click Commit button via keyboard shortcut?

This sounds like a simple question, but I can't figure it out. When working on my code, I like to commit often. I bring up the Commit popup window often via a keyboard shortcut. After I type in my commit message, I then have to go pickup the mouse to click on the Commit 1 File button. Is there a way to do this via the keyboard? Screenshot of popup window - https://gist.github.com/jcarucci/97f574e90565e5cefc664630bc9de6df
Asked
Last updated .
Post marked as unsolved
47 Views

xcode crashes after mac os Big sur update

I downloaded new mac os big sur developer beta and Xcode has started crashing. when I open Xcode, it says xcode quit unexpectedly while using the libMainThreadChecker.dylib plug-in. my Xcode version is 10.3 and it was working perfectly fine on catalina
Asked
Last updated .
Post marked as unsolved
10 Views

Xcode 12 Beta 3: Message from debugger: Terminated due to signal 9

Less than 5 seconds after I swipe up from the bottom (with my app running the foreground, not from the app switcher) to send my app to the background on my iPad (running iOS 14 Beta 3) while running my app with the debugger attached through Xcode 12 beta 3, connected to my Mac with a band new lightning cable, I see this message (and then my app is no longer running) :- Message from debugger: Terminated due to signal 9 This happens consistently, without me trying to quit the app from the app switcher. Since this is a beta, I'm not sure if this is an issue in my app, an issue in Xcode 12 beta, or an issue in the iOS 14 beta.  Does anyone have any thoughts on what's going on?
Asked
by samuelj.
Last updated .
Post marked as solved
63 Views

AVFoundation in XCode 12 Beta 3

I have a macOS app which uses AVFoundation that was building fine with XCode 12 Beta 2. In Beta 3, I get: Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/lib/swift/AVFoundation.swiftmodule/x86_64-apple-macos.swiftinterface:72:11: 'AVAudioSession' is unavailable in macOS /AVFoundation.AVAudioSession:2:12: 'AVAudioSession' has been explicitly marked unavailable here Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/lib/swift/AVFoundation.swiftmodule/x86_64-apple-macos.swiftinterface:129:11: 'AVAudioSession' is unavailable in macOS /AVFoundation.AVAudioSession:2:12: 'AVAudioSession' has been explicitly marked unavailable here Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/lib/swift/AVFoundation.swiftmodule/x86_64-apple-macos.swiftinterface:1:1: Failed to build module 'AVFoundation' from its module interface; the compiler that produced it, 'Apple Swift version 5.3 (swiftlang-1200.2.22.2 clang-1200.0.25.1)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.3 (swiftlang-1200.0.22.4 clang-1200.0.25.1)' I didn't see anything about this in the known issues of Beta 3. Does anyone have any thoughts on what's going on?
Asked
by eldevo.
Last updated .
Post marked as unsolved
49 Views

Playgrounds with custom Root Certification?

Anybody know if it's possible to get Playgrounds (and, I'm guessing, Live Previews) to enable full trust got a root certificate, like we can do in the Simulator? My company's experimenting with a new security platform that involves installing a root certificate. So, any https requests we're making in that render in Xcode are failing. The root cert's already in Keychain and available for general use on Mac.
Asked
by jablair.
Last updated .
Post marked as unsolved
18 Views

How to avoid a massive controller?

Hi everybody, I am a beginner developer and in my Shopping List application I faced a problem of a massive controller. I have read several articles on this topic. They helped me to understand some things, but they don't solve this problem completely. Therefore, I decided myself to try to organize the structure of the view controller in terms of the tasks to be solved. For example, my application has a table view controller (screen) for list of items. This TVC should perform the following main tasks: Show list of Items. Select items for Shopping. In turn, the first main task includes the following actions: Show data in a table Supporting Edit Actions - Add, Delete, and Change Data. Supporting Usability Action - Sort (reorder, rearrange) Data. The second main task includes the following actions: Mark Items with a Checkmarks In addition, this TVC should to save and load data. Common / General Supporting Tasks for Both Main Tasks: Save data to the archive file Load Data from the archive file When I implemented all the functions of the controller, I got the following real structure: Supporting Common / General Task: Load data Load data from database Load/Update data after changing in other View Controllers Main Task 1: Show data in a table. numberOfSections numberOfRowsInSection cellForRowAt Supporting Edit Task for Main Task 1: Add a new item. Calling a method from an Extension Supporting Edit Tasks for Main Task 1: Delete and Change actions leadingSwipeActions deleteAction changeAction Unwind Action - Return from Change Screen for Cancel button Supporting Usability Task for Main Task 1: Sort list of items. Show sort/reorder/rearrange button and its title Which rows can be reordered (Allow to reorder) Reorder items in list Remove Delete button from screen Main Task 2: Select items (mark them with checkmarks) didSelectRowAt Supporting Usability Task for Main Task 2: Clear all Checkmarks. Uncheck all items button Supporting Common / General Task: Persist Data (Save data to the archive file) Save/persist data before View will disappear  viewWillDisappear Could you tell me is this approach optimal? May I have some other problems later which I do not know about yet? Any ideas are appreciated.
Asked
by John368.
Last updated .
Post marked as unsolved
19 Views

rvictl not working on big sur and ios 14 beta 3

I'm trying to inspect network traffic on an iphone 11 pro, I use: rvictl -s [UDID] on terminal and it closes after a couple seconds without any error. I know the UDID is correct because if I use a wrong one it brings up the help . I installed most of the extra tools I found for xcode and such and rvictl is available, it just doesnt work.
Asked
by monxas.
Last updated .
Post marked as unsolved
21 Views

new widgets doesn't appear in widget gallery

Hello, I have added a widget extension in my iOS app but when I run the iOS app, it doesn't appear in widget gallery. So I tried to run the widget extension directly and most of time I get this error : SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget 'com.Ce-dricLoneux.School-Companion.WidgetsSchoolCompanion' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (com.Ce-dricLoneux.School-Companion.WidgetsSchoolCompanion)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (com.Ce-dricLoneux.School-Companion.WidgetsSchoolCompanion)}." UserInfo={NSLocalizedDescription=Failed to show Widget 'com.Ce-dricLoneux.School-Companion.WidgetsSchoolCompanion' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (com.Ce-dricLoneux.School-Companion.WidgetsSchoolCompanion)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (com.Ce-dricLoneux.School-Companion.WidgetsSchoolCompanion)}., NSUnderlyingError=0x10ffccbb0 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (com.Ce-dricLoneux.School-Companion.WidgetsSchoolCompanion)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (com.Ce-dricLoneux.School-Companion.WidgetsSchoolCompanion)}}} Domain: DTXMessage Code: 1 Then I can close this message and the widget is in app gallery. In the settings of the iOS apps, section : Framework, libraries and embedded content : The widget .appex is there so I don't understand why the widget extension isn't packed with iOS app.
Asked
by CedricLnx.
Last updated .
Post marked as unsolved
19 Views

Thread 1: Fatal error: Index out of range

What the problem? func setupQuestion(){         if currentQuestion != quizzes.count {             let question = quizzes[currentQuestion] Thread 1: Fatal ...........error: Index out of range             questionText.text = question.question             choice1.setTitle(question.choice1, for: .normal)             choice2.setTitle(question.choice2, for: .normal)             choice3.setTitle(question.choice3, for: .normal)             choice4.setTitle(question.choice4, for: .normal)         }
Asked
Last updated .
Post marked as unsolved
38 Views

XCode12 beta build errors with AVAudioSession APIs

I get the following compilation errors on XCode 12 that are not there when building the same project with XCode 11. preferredAutoMicrophoneLocation = AVAudioSession.Location.orientationFront Error: Type 'AVAudioSession.Location' has no member 'orientationFront' Has something changed in the new iOS SDK?
Asked
by Devgeek.
Last updated .
Post marked as unsolved
1.3k Views

Undefined symbol: type metadata for Swift._StringObject.Variant

While trying to build our project with Xcode 12 I ran into multiple build failures while rebuilding our dependencies with Carthage. I always end up getting this linker error: Undefined symbols for architecture armv7: "type metadata for Swift.StringObject.Variant", referenced from: outlined init with take of Swift.StringObject.Variant in CountryCodePickerViewController.o ld: symbol(s) not found for architecture armv7 This happened for me for both Alamofire and PhonenumerKit; therefore, this looks like an issue with the new Xcode and not the frameworks themselves. Archiving them with Xcode 11 works without a problem. As an intermediate workaround I removed the armv7 architecture from the valid architectures.
Asked
by franzb.
Last updated .
Post marked as unsolved
1.3k Views

Installing command line tools for previous Xcode versions

Hello!I am using Delphi to create a cross-platform app.Android is absolutely fine, but iOS is giving me no end of grief.The main problem is that I can't run my app on an iPhone X either as an emulator (because Delphi currently lacks support for MacOSX 64-bit) or as a device. The latter should indeed work, but I am completely new to iOS development so chances are I'm being a knob.When trying to run on the device, the app doesn't even build properly because Delphi says that "File was built for x86_64 which is not the architecture being linked(arm64)". I have a strong suspicion that this message is coming from the Apple toolchain rather than Delphi. The file being referred to here is AudioToolbox.In order to try and work around this issue, I am trying to download and install the command line tools for previous versions. I can download them alright and open them but then nothing happens and I am wondering why. What I get is the opened box which suggests it's trying to unpack the thing but it sits there doing nothing. I don't think it requires admin privileges because then it'd query for my password, but it's not.What am I doing wrong? Can somebody please help me figure out my missteps?Thank you!
Asked
Last updated .