I downloaded new XCode 11 today and when I am trying to open my project, XCode will always crash. Does anyone else experience this problem ? I have provided part of crash log. It's IDE related problem, but I would be really glad, someone has a solution to this.Crashed Thread: 25 Dispatch queue: ConcurrentQueue: -[IDEProvisioningMechanic _executeNextRepairIfNeeded]_block_invokeException Type: EXC_CRASH (SIGABRT)Exception Codes: 0x0000000000000000, 0x0000000000000000Exception Note: EXC_CORPSE_NOTIFYApplication Specific Information:ProductBuildVersion: 11A420aASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-14936/IDEFoundation/Provisioning/Mechanic/IDEProvisioningRepairStepGenerator.m:252Details: Didn't find a single primary certificate type from {()}Object: <IDEProvisioningRepairStepGenerator_Automatic: 0x7fdc55061ef0>Method: -_evaluateCertificatesWithSession:context:repairable:steps:userAction:error:Thread: <NSThread: 0x7fdc44944ca0>{number = 20, name = (null)}Hints: Backtrace: 0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit) 1 _DVTAssertionHandler (in DVTFoundation) 2 _DVTAssertionFailureHandler (in DVTFoundation) 3 -[IDEProvisioningRepairStepGenerator_Automatic _evaluateCertificatesWithSession:context:repairable:steps:userAction:error:] (in IDEFoundation) 4 -[IDEProvisioningRepairStepGenerator_Automatic stepsWithSession:context:userAction:error:] (in IDEFoundation) 5 -[IDEProvisioningRepair execute] (in IDEFoundation) 6 __53-[IDEProvisioningMechanic _executeNextRepairIfNeeded]_block_invoke_2 (in IDEFoundation) 7 __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation) 8 __DVTDispatchAsync_block_invoke (in DVTFoundation) 9 _dispatch_call_block_and_release (in libdispatch.dylib) 10 _dispatch_client_callout (in libdispatch.dylib) 11 _dispatch_continuation_pop (in libdispatch.dylib) 12 _dispatch_async_redirect_invoke (in libdispatch.dylib) 13 _dispatch_root_queue_drain (in libdispatch.dylib) 14 _dispatch_worker_thread2 (in libdispatch.dylib) 15 _pthread_wqthread (in libsystem_pthread.dylib) 16 start_wqthread (in libsystem_pthread.dylib)I have deleted caches in library, derivated data, even disabled automati signing, but none of these work, also /Library/Caches/com.apple.xbs does not exist. I have asked this question on SO - https://stackoverflow.com/questions/58052418/xcode-11-crashes-when-opening-the-project
Xcode
RSS for tagBuild, test, and submit your app using Xcode, Apple's integrated development environment.
Post
Replies
Boosts
Views
Activity
Ever since updating (against my will) to Xcode 11, I'm getting this error when I try to build my project:"Command CodeSign failed with a nonzero exit code"I've tried cleaning my project, resetting my login keychain, and restarting my computer, but I still get this error... what to do?xcode
Running Mojave 10.14.6Xcode 11.0 (11A420a)iOS 13.1.2iPhone 6s PlusI cannot seem to find the solution here or on Stack Overflow.When compiling, I keep getting this error:Command PhaseScriptExecution failed with a nonzero exit codeI tried in XcodeXcode > Preferences > Accountssigning in and outI have created a new Dev Cert, Distribution Cert, new PUSH certs, new provisional profilesI have tried pod updatesI have tried changing the Build Phase info with chmod +xas recommended by this posthttps://forums.developer.apple.com/thread/122796?start=0&tstart=0I have tried rebooting my phone. I have tried rebooting the computer. rebooting xcode (obviously)Don't know what else to do.
My test HTTP server uses a certificate signed by my self signed CA certificate.In order for my iOS device to connect to this server I need to install my CA's root certificate. I've been using recommendations here, https://developer.apple.com/library/archive/qa/qa1948/_index.html, to successfully install the CA root certificates on iOS devices and simulators for several years.However with iOS 13, I don't seem to be able to install the CA certificate on iOS simulators any more. Still works on iOS 13 devices. When I drag my CA's .cer file onto an iOS simulator Safari opens an appears to start to load the file. However, the Settings app does not get opened and if I open the Settings app I no longer see my certificate listed under General / Profiles.Is this a bug? Has the procedure for installing certificates to a simulator changed? Is anyone else running this issue?Thanks.
In Xcode 11.1, I created a 'README.md' markdown file, but it always renders as its raw text (yet font size changes depending on header level). For example, in Xcode's editor I see:# AppName
## Version
1.0Where the first line is in a larger font size than the lines 3 and 4.Anyhow, if I open up a project from Apple (e.g. BuildingCustomViewsInSwiftUI), it's README renders correctly.If I paste my project's contents into Apple's sample project README, it then renders a-ok. The reverse though (taking the contents from Apple's sample and pasting into my project; even dragging in the original project) won't render it (I then see all the markup symbols such as #.I've checked every possible setting between the two projects and cannot figure out why this is happening. The type of file (markdown), encoding, etc. are identical.However, one item I have noticed is that in Apple's sample project, when I view the README.md file, the Editor | Minimap menu choice is disabled and unchecked. Whereas in my project, the menu choice is enabled. Toggling that on/off though has no effect in my project.Thus, there must be some reason why Apple's sample has the Minimap option disabled. And my guess is this is the reason why Apple's sample in then rendering the markdown file correctliy in the editor.Anyone know how to fix this?Note: I also viewed the contents of the various files under the .xcodeproj package and couldn't find anything useful (i.e.. I was hoping to find some settings difference regarding the readme file, but couldn't find any).
After I updated to Mac OS Catalina I'm no more able to run the simulator. I always get this: "Unable to boot the Simulator - launchd failed to respond".I'm runningMac OS 10.15 CatalinaXcode 10.3I can't update to Xcode 11 (anyway my collegue installed Xcode 11 and he's getting the same error too)I already try these:- Simulator/Hardware/Erase all contents and services... (the result was a black screen on simulator and nothing happened)- Delete all simulators and download them again- /private/tmp directorysudo mkdir /private/tmp
sudo chmod 1777 /private/tmp- I tried thisxcrun simctl shutdown all
xcrun simctl delete $(xcrun simctl list | grep -o '[0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\}' | xargs)
xcrun simctl delete unavailableNothing seems working... The simulator looks working in the morning, than after few builds it stop working.Ideas?
After the upgrade to Xcode 11, an existing app that once was debuggable on device can no longer be installed and debugged on device. It is failing with an unknown error. Same failure occurs on Xcode 11.2.1 and Xcode 11.3 beta. App debugging on SImulator works fine.This is not reporting a codesign or provisioning failure (I've seen those in the past). I'm hoping someone can help narrow down the culprits.DetailsUnable to install "NameOfMyApp"Domain: com.apple.dtdevicekitCode: -402620415--App installation failedDomain: com.apple.dtdevicekitCode: -402620415Failure Reason: An unknown error has occurred.User Info: { DVTRadarComponentKey = 487927; "com.apple.dtdevicekit.stacktrace" = ( 0 DTDeviceKitBase 0x000000012692a6e7 DTDKCreateNSError + 109 1 DTDeviceKitBase 0x000000012692ade9 DTDK_AMDErrorToNSError + 792 2 DTDeviceKitBase 0x000000012696a56a __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 164 3 DVTFoundation 0x000000010b4ea156 DVTInvokeWithStrongOwnership + 73 4 DTDeviceKitBase 0x000000012696a301 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1589 5 IDEiOSSupportCore 0x00000001267f2a25 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4523 6 DVTFoundation 0x000000010b61b3ba __DVT_CALLING_CLIENT_BLOCK__ + 7 7 DVTFoundation 0x000000010b61ca92 __DVTDispatchAsync_block_invoke + 809 8 libdispatch.dylib 0x00007fff590635f8 _dispatch_call_block_and_release + 12 9 libdispatch.dylib 0x00007fff5906463d _dispatch_client_callout + 8 10 libdispatch.dylib 0x00007fff5906a8e0 _dispatch_lane_serial_drain + 602 11 libdispatch.dylib 0x00007fff5906b396 _dispatch_lane_invoke + 385 12 libdispatch.dylib 0x00007fff590736ed _dispatch_workloop_worker_thread + 598 13 libsystem_pthread.dylib 0x00007fff592a4611 _pthread_wqthread + 421 14 libsystem_pthread.dylib 0x00007fff592a43fd start_wqthread + 13);}--
Hi. I have some trouble while on connecting latest Python 3.8 on the Xcode 11. I have been fighting with the problem almost couple of days, and I finally concluded I must get help from the masters. I'm new to Xcode and other programming stuff, please forgive me on being clumsy;)I first type on google Xcode, Python and read some posts about bringing Python on the Xcode. Though they're bit outdated (mostly on 2016, 2017) but still the format was similar, so I decided to follow them step by step.First, open the Xcode and create the new Project. Add product name 'pythons', and fill other blank below. On Build Tool, I pasted/Library/Frameworks/Python.framework/Versions/3.8/bin/python3which is the address of Python3 I found by typing 'which python3' on Terminal. Than I pressed Next, and create project folder on Desktop, checked on options: 'Source Control: Create Git repository on my Mac'.Secondly, create the new file. I went to 'File-New-File' at the menu and found 'Empty' template at 'macOS-Other' category. Click Next, save asFile.py, checked on 'Group: pythons, Targets: pythons'. And created the file at the folder 'pythons'.Third, edit scheme on the created file. I brought scheme edit page by 'Product-Scheme-Edit Scheme'. At the Info tab, I changed 'Exexutable' on 'other' choosing python38, which I made it newly by opening the Terminal on the '~bin' folder which I mentioned on Build Tool, and typing on Terminalln python3.8 python38By the procedure, I could choose python38 instead of python3, which was non-selectable with gray shade on it. Than I un-checked the 'Debug executable'.Move to Arguments tab and click + of 'Arguments Passed On Launch'. Than I typed in $(SRCROOT)/File.pyMove to Options tab, there is Working Directory option, and I checked on 'Use custom working directory' to the project path on Desktop.Finally, close the scheme editing page and write 'print("Hello world")' on the canvas. Run it.And there are errors, which I couldn't solve out./Library/Frameworks/Python.framework/Versions/3.8/bin/python38: can't open file '$(SRCROOT)/File.py': [Errno 2] No such file or directoryProgram ended with exit code: 2How can I solve this errors and get back on working Python with Xcode?Many people on the net say that build python with other tools such as pycharm, IDLE or other stuff, I guess I should. But I really want to know at least what was worng with the steps I took and just wanna see 'Hello world' on the output.Please help me.. This problem keeps tangling like an fishbone on my neck every time. Welcomes precise feedbacks. Thanks.
I'm trying to install Xcode on High Sierra 10.13.6 and I'm having problems doing so. I'm getting error that I need to upgrade to 10.14 or higher but I don't want to upgrage my Mac OS. Is there and older version of Xcode that can be installed on my version of Mac (10.13.6)?
There have been occasional questions about remote debugging. Unfortunately I see a couple of them which were reasonable basic questions got no answer at all. I will try this again. A couple questions had some mention of lldb server. In some cases clearly the people asking the questions already knew a bit about remote debugging. Yet I can find no documentation about it.Does XCode or other tools that will work with XCode support debugging over the internet? If so what are the reqirements re XCode version and macOS version, whether the client and server can have unmatched versions, etc.?My immediate need (without extra steps) is to debug a process running on Sierra (no XCode installed yet) from a development system running XCode 7.3.1 under El Capitan.The need for remote debugging is to be able to diagnose crashes that don't happen on my development systems. There have also been questions concerning crash logs, but crash logs are of limited use unless the crash can be opened into a debugger with full ability to examine the stack and local variables.Thanks in advance!
I have an iphone xs running public beta 13.5. I have tried running an app I've been working on on my phone and I keep getting a "Failed to prepare this device for deployment" error. I have tried with both the app store version of xcode as well as xcode beta 11.5 beta 2 (11N605f). I'm also using the free provisioning account. Any help getting the app to deploy would be appreciated.
I'm trying to preview a view from a swift package which is located in one of the target's directory subdirectories:
.
├── Package.swift
├── README.md
└── Sources
		└── SatelitUI
				└── Views
						└── MenuBar.swift
When I'm previewing a view from the MenuBar.swift file I'm getting following error:
NoBuildableEntriesError: active scheme does not build this file
Select a scheme that builds a target which contains the current file, or add this file to a target that is built by the current scheme.
Which is unexpected because the file should be a part of the SatelitUI target. The thing is it works just fine if I move it into the root target's directory (SatelitUI).
I'm unable to run my app with ASAN enabled when targeting a physical iOS device. Simulator targets do work.
With Xcode 12 and an iPad mini 4 running iOS 14 beta 1 I get the following error during app launch
==750==ERROR: AddressSanitizer failed to allocate 0xffffffffff9fc000 (-6307840) bytes at address 2db624000 (errno: 22)
==750==ReserveShadowMemoryRange failed while trying to map 0xffffffffff9fc000 bytes. Perhaps you're using ulimit -v With Xcode 11.5 and an iPad Air 2 running OS 12.4.1 the error is
==2177==Unable to find a memory range after restricting VM.
==2177==AddressSanitizer CHECK failed: /BuildRoot/Library/Caches/com.apple.xbs/Sources/clangcompilerrt/clang-1103.0.32.62/compiler-rt/lib/asan/asanmac.cc:92 "((0 &amp;&amp; "cannot place shadow after restricting vm")) != (0)" (0x0, 0x0)
&lt;empty stack&gt;==2177==AddressSanitizer CHECK failed: /BuildRoot/Library/Caches/com.apple.xbs/Sources/clangcompilerrt/clang-1103.0.32.62/compiler-rt/lib/asan/../sanitizercommon/sanitizermallocmac.inc:143 "((!asaninitisrunning)) != (0)" (0x0, 0x0)
warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available.
AddressSanitizer report breakpoint hit. Use 'thread info -s' to get extended information about the report.
(lldb) thread info -s
thread #1: tid = 0x1076c2, 0x000000011531e984 libclangrt.asaniosdynamic.dylib`__asan::AsanDie() My coworker is able to use ASAN with the same App using iPad Pro 10.5, iPadOS 13.5.1, Xcode 11.5
Are there any configuration changes I need to make to be able to use ASAN on my devices?
Sometimes when running UI tests, the tests fail on keyboard input because the "Speed up your typing" keyboard tutorial overlay obscures the keys. This happens randomly, but sometimes repeatedly.
Is there a way to turn this off? Checking for this tutorial before any keyboard input would significantly complicate tests just to check for one edge case...
Our project is split up into multiple Pods with CocoaPods and I'm currently trying to convert all of our podspecs to SPM. One of our projects has XCFramework dependencies that I'm trying to include from a local source, but my project files are complaining that the modules couldn't be found when I try to import them. Is there something I'm missing here? My Package.swift file looks something like this:
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "MyPackage",
defaultLocalization: "en_us",
platforms: [
.iOS(.v12),
.watchOS(.v6),
.macOS(.v10_15)
],
products: [
.library(
name: "MyPackage",
targets: [
"MyPackage"
]),
],
dependencies: [
],
targets: [
.target(
name: "MyPackage",
dependencies: [
.byName(name: "LocalXCFramework")
],
path: "Sources/"
),
.binaryTarget(
name: "LocalXCFramework",
path: "Frameworks/LocalXCFramework.xcframework"
)
]
)
In this example, if I try to import the modules from LocalXCFramework, I get an error saying it couldn't be found.
In the talk, it was explained how to use a binaryTarget to add a .xcframework from a url, but what about a local path?
Take the following Package and file structure, is this the correct way to structure and refer to the .xcFramework?
| SamplePackage
| - | Package.swift
| - | README.swift
| - | Sources
| - | - | Sample
| - | - | - | file.swift
| - | - | SampleFramework
| - | - | - | framework.xcframework
| - | - | Tests
| - | - | - | LinuxMain.swift
| - | - | - | SampleTexts
| - | - | - | - | sampleTests.swift
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Sample",
platforms: [
.iOS(.v13),
.macOS(.v10_12)
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "Sample",
targets: ["Sample", "SampleFramework"]),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target( name: "Sample"),
.testTarget(
name: "SampleTests",
dependencies: ["Sample"]),
.binaryTarget(
name: "SampleFramework",
path: "framework.xcframework")
]
)
I am getting the following error(s): invalid custom path 'framework.xcframework' for target 'SampleFramework'
target path '/framework.xcframework' is not supported; it should be relative to package root
I've got an iOS framework that I've had around for ages. It's a mixture of Objective-C and Swift.
Since installing Xcode 12, I'm now getting a bunch of warnings of the type:
'Double-quoted include in framework header, expected angle-bracketed instead'
If I go to the various source files and say change:
#import "Place.h"
to
#import <VegasKit/Place.h>
then I get an error saying it can't find the file. If I try this:
#import <Place.h>
then I get an error telling me to go back to double-quotes, i.e. undo the change.
Any idea what I can do to get this all setup correctly? Thanks.
Hi, I was trying to build my app on Apple Silicon on a DTK, but it fails, because the RubyGems is having some issues.
This is what happens when I run "pod install" in the terminal.
Log - https://developer.apple.com/forums/content/attachment/9e19f030-fac9-42af-a88c-10b3e11aba56
I hope the pending antitrust suits force Apple to allow us to sign and provision our own apps for more than a week. For the price paid I should be able to write my own apps and use them without restriction outside of Apple services such as iCloud and so on. I understand distribution restrictions but please kill that 1 week annoyance, give me some level of freedom over my own apps on my own device.
Or I hope it’s forced.
Cheers and Thanks in advance.
When I want to create ios development / distribution certificate it show error.
The operation couldn’t be completed. (OSStatus error -2147416032.)