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

Xcode Documentation

Posts under Xcode tag

3,300 Posts
Sort by:
Post not yet marked as solved
0 Replies
38 Views
I am running on Sonoma 14.X and I need to download and install VM of older OS (Ventura). Whatever the value I change in deployment target it downloads VM of Sonoma OS. I am from QA and need older OS to test app compatibility. https://developer.apple.com/documentation/virtualization/running_macos_in_a_virtual_machine_on_apple_silicon_macs
Posted
by KiranRK.
Last updated
.
Post not yet marked as solved
0 Replies
31 Views
I just updated to Xcode 15.2 and disk usage increased about 20GB (with macOS 13.6.3). Should this be expected? Are there ways to mitigate this? In particular, I have only iOS installed, and I see an iOS simulator DMG here (Library > Developer > CoreSimulator > Images) which is 7.35GB. Is it necessary to retain this file? Thanks!
Posted
by Eggsalad.
Last updated
.
Post not yet marked as solved
0 Replies
27 Views
Hello Folks! I'm new to Xcode and I'm trying to create a simple 2D-Game with c++ and I found out, that SFML offers a nice tool to create a game engine. Now my purpose is to develop tools for studying and I'm trying to link SFML with Xcode. Since I already was successful in creating a pop-up window via the terminal I believe I can handle to do it with Xcode. I tried the following: I created a new SFML project in Xcode with the same Main.cpp file. I went to the build settings and changes the Header-Path to the SFML-Include folder and the Library-Path to the SFML-lib folder. I also linked the binaries with the libraries in the build phase. When I run the script Xcode told me, that the build was successful and the app tried to open the window (It jumped around and appears in the strip. But I also got an error message, that the dynamic libraries couldn't load. It would be very nice, if someone could help me with my issue. Happy to hear from you, kind regards Jeremy
Posted
by Jryl123.
Last updated
.
Post not yet marked as solved
0 Replies
32 Views
Hello, The appearance of one of my buttons is not updating after being tapped. I have had no trouble doing the exact same thing in my other views, but here it simply doesn't work. The "heart" button will keep its original appearance (in this case an unfilled heart) no matter what, despite my print statements indicating that the value has changed. The other actions performed when tapping the heart work perfectly. I've been at it for hours. Any help would be appreciated. Thanks! import SwiftUI struct SearchView: View { @State private var searchText = "" @StateObject var save = SaveWords() @State var heart: String? @State var disappear = false @State var done = true var body: some View { NavigationView { VStack { if !disappear { SearchBarView(text: $searchText) Spacer() } if searchText != "" { List(.constant(Array(FetchWord.getWordFromStart(start: searchText)).prefix(10).map {Word(word: $0.1)})) { suggestion in NavigationLink(destination: suggestion.IPA.wrappedValue == "error" ? AnyView(EmptyView()) : AnyView(PracticeView(wordSheet: suggestion) .onAppear { disappear = true if done { SaveWords.file = "Favorites" DispatchQueue.main.async { Task { try? await save.load() heart = save.words.contains(suggestion.wrappedValue) ? ".fill" : "" } } } } .onDisappear { disappear = false Task { SaveWords.file = "History" try? await save.load() if save.words.first != suggestion.wrappedValue { save.words.insert(suggestion.wrappedValue, at: 0) try? await save.save() } } } .toolbar { ToolbarItem(placement: .navigationBarTrailing) { Button(action: { SaveWords.file = "Favorites" done = false if heart == "" { heart = ".fill" DispatchQueue.main.async { Task { try? await save.load() if !save.words.contains(suggestion.wrappedValue) { save.words.insert(suggestion.wrappedValue, at: 0) try? await save.save() } } } } else { heart = "" DispatchQueue.main.async { Task { try? await save.load() try? await save.delete(wordToDelete: suggestion.wrappedValue) try? await save.save() } } } done = true }, label: { Image(systemName: "heart" + (heart ?? "")) }) } }) ) { if suggestion.IPA.wrappedValue != "error" { CardView(wordSheet: suggestion) } } } } } Spacer() } } } #Preview { SearchView() }
Posted Last updated
.
Post not yet marked as solved
0 Replies
31 Views
Hi all, I create apps for Apple and I've been encountering the issue that I cannot upload 4 or 5 apps in a day because they are rejected. It only allows me to upload one a day. Has anyone else encountered this issue/limit? Any advice or ways to resolve this issue? I have multiple apps to complete and upload but this issue has been delaying the process. Thanks in advance.
Posted Last updated
.
Post not yet marked as solved
0 Replies
27 Views
Loaded both Swift-Collection package 1.1.0 from https://github.com/apple/swift-collections and Facebook 14.1.0 package from https://github.com/facebook/facebook-ios-sdk I open swift file and type import, the prompt shows the module FBSDKCorekit and as soon as select it, it immediately says module not found Does the same thing for OrderedCollection module. Did a clean and then also deleted DerivedData directory contents and rebuilt, same error occurs, does not recognize the modules, even though correct packages exist in Xcode I tied with Faebook 16.3.1 and tried. I deleted the project, created a new project, selected Add Package Dependencies and then deleted the recently sued packages, entered the facebook ios url and tried again. Same error, does not recognize the package contents How can I fix this? Please help.
Posted
by vihrao.
Last updated
.
Post not yet marked as solved
1 Replies
130 Views
Yesterday (2/7/24) was fine, and there has been an automatic (security?) update on my MacBook Pro (Ventura 13.6.4) overnight. Since then, Xcode does not have any platform available, simulator or actual connected devices. The top bar of Xcode says "iOS 17.2 Not Installed" and when clicking to install, it installs the "iOS 17.2 Simulator" but not "iOS 17.2". Clicking "Get" refers to downloading the corresponding Simulator, which is already installed. This is a serious issue preventing any deployment on device, simulator, or AppStore! Please help!
Posted Last updated
.
Post not yet marked as solved
15 Replies
257 Views
Hi there :) I try to put an Xcode project in place within a LaunchAgent. The ultimate goal is to have an "application" with two component: macOS application with just an basic UI all the logic happens in a LaunchAgent that runs on background and is launch at startup. The macOS app uses XPC to send messages to the agent that will run either the app is opened or not. I struggled at first having this error (for the agent): An XPC Service cannot be run directly. Then I found using MachServices key in the .plist of the agent fixes the issue, plus: let listener = NSXPCListener.init(machServiceName: "com.tonygo.NetworkMonitorAgent") Then I wonder: Do we have somewhere a documentation about how to setup a LaunchAgent in Xcode I create the plist of the agent on side and run it manually, I could do this in a more automatic way How could I package a macOS applciation that will contains the agent, install it and load the agent? Note: This is mainly for learning and understanding what we could do at each level (XPCService, LaunchAgents, LaunchDaemon, etc.).
Posted
by tonygo.
Last updated
.
Post not yet marked as solved
1 Replies
55 Views
Whenever we include the mergeable configuration on an xcframework which contains a SwiftUI preview, the preview can't compile. That's because it is trying to keep the dynamic configuration but on a binary type that is not a dynamic library. It fails with the error: Linking failed: linker command failed with exit code 1 (use -v to see invocation) 1d: -make_mergeable can only be used when creating a dynamic library clang: error: linker command failed with exit code 1 (use -v to see invocation) That's only happening when we add the preview.
Posted
by BertoGmFc.
Last updated
.
Post not yet marked as solved
1 Replies
58 Views
I want to build an Xcode Source Code Editor extension that triggers an XPC service shows a gui that can handle user interactions Is it possible in any way ? what are the alternatives to display the UI and allow the user to interact on it ?
Posted
by ak175.
Last updated
.
Post not yet marked as solved
5 Replies
2.3k Views
According to the WWDC202310224 "Simplify distribution in Xcode and Xcode Cloud" video, there are two questions about my development process. First, the developer must use "Development Profile" to config Signing & Capability instead of "Developer ID Application profile" for building Applications? shown as the pictures below Second, after build application successfully with "Development Profile", process Product -> archive will fail with "Command SetOwnerAndGroup failed with a nonzero exit code" error message, I have no idea how to solve this problem. Cloud you please tell me how to successfully archive the DriverKit application step by step and further directly distribute Application ? Thanks for your helpful support.
Posted
by asix.
Last updated
.
Post not yet marked as solved
8 Replies
806 Views
I am having a very weird issue with Xcode 15.0.1. If you are running an app that was built with XCode 14 and install the new version of the app with XCode 15 it works fine. If you delete the XCode 14 build of the app, and install the XCode 15 build of the app you get "This app cannot be installed because its integrity could not be verified" error message on launching the app. Then when we rebuild the app again with XCode 14 the app works fine with no issues. I have tried multiple solutions that I have found on various forums, but with no luck. Anyone have any suggestions on how to fix this issue.
Posted
by andrew289.
Last updated
.
Post marked as solved
2 Replies
76 Views
given [URL.lastPathComponent] how do I sort as Finder sorts in macOS? Example: urlPaths = contentsOfDirectory(at: ... e.g., ["1H", "10Ne", "11Na"] urlPaths.sort(by: { $0 < $1 } //Apple Swift version 5.9 print(urlPaths) // 10Ne 11Na 1H whereas Finder filename sort gives // 1H 10Ne 11 Na and is beautiful. I have always taken this sort for granted and am now buggered to duplicate it.
Posted Last updated
.
Post not yet marked as solved
1 Replies
51 Views
I have seen similar problems reported but find myself unable to fix this. I have datePicker and a segmented control as subviews in a stack, built on the interface builder. These display on the interface builder with the correct white color text but once the app builds on the simulator, it displays as black text. I have tried setting the value for the color in viewDidLoad using: datePicker.setValue(UIColor.white, forKeyPath: "textColor") but with no luck. I'm not sure if the fact they are in a subview is the problem, and I'm just missing a tick box somewhere? It's especially confusing that it seems to display properly on the storyboard but as soon as the app loads it reverts to black. Could this be a bug in Xcode? Many thanks for any help.
Posted Last updated
.
Post not yet marked as solved
0 Replies
44 Views
Hello everyone, Due to a change in our development team we had to revoke some certificates and regenerate new one. I have generated a Development Mobile profile including needed certificates etc. Also, in Xcode 15 i have disabled "automatically manage signing" and everything look okay as I can see the generated provisioning profile, my team, my certificate etc. Build is working correctly. We are using App Center as a CI to build/archive.. our iOS app. During the last step of the archive export I have the following error which I cannot resolve : [command]/usr/libexec/PlistBuddy -c Print CFBundleIdentifier /Users/runner/work/1/output/build/archive/OurStagingApp.xcarchive/Products/Applications/OurStagingApp.app/Info.plist com.OurStagingDomain.OurStagingApp [command]/usr/libexec/PlistBuddy -c Add provisioningProfiles:com.OurStagingApp.OurStagingApp string toktokdoc provisioning profile development _XcodeTaskExportOptions.plist [command]/usr/bin/xcodebuild -exportArchive -archivePath /Users/runner/work/1/output/build/archive/OurStagingApp.xcarchive -exportPath /Users/runner/work/1/output/build/export/_XcodeTaskExport_OurStagingApp -exportOptionsPlist _XcodeTaskExportOptions.plist 2024-02-08 14:21:05.218 xcodebuild[18640:56463] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/r0/ztvld9wd66bfpv_g6h3ksl000000gn/T/OurStagingApp_2024-02-08_14-21-05.213.xcdistributionlogs". 2024-02-08 14:21:05.370 xcodebuild[18640:56463] [MT] IDEDistribution: -[IDEDistributionMethodManager orderedDistributionMethodsForTask:archive:logAspect:]: Error = Error Domain=IDEDistributionMethodManagerErrorDomain Code=2 "Unknown Distribution Error" UserInfo={NSLocalizedDescription=Unknown Distribution Error} error: exportArchive: exportOptionsPlist error for key "method": expected one of {}, but found development Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key "method": expected one of {}, but found development" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key "method": expected one of {}, but found development} ** EXPORT FAILED ** ##[error]Error: /usr/bin/xcodebuild failed with return code: 70 I tried to regen certificates, regen provisioning profile, use automatically signed.. Also this is the logs of the last working build : DEV PROV PROFILE TokTokDocRCX [command]/bin/rm -f _xcodetasktmp.plist [command]/usr/libexec/PlistBuddy -c Print CFBundleIdentifier /Users/runner/work/1/output/build/archive/OurStagingApp.xcarchive/Products/Applications/OurStagingApp.app/Info.plist com.OurDomain.OurStagingApp [command]/usr/libexec/PlistBuddy -c Add provisioningProfiles:com.OurDomain.OurStagingApp string DEV PROV PROFILE TokTokDocRCX _XcodeTaskExportOptions.plist [command]/usr/bin/xcodebuild -exportArchive -archivePath /Users/runner/work/1/output/build/archive/OurStagingApp.xcarchive -exportPath /Users/runner/work/1/output/build/export/_XcodeTaskExport_OurStagingApp -exportOptionsPlist _XcodeTaskExportOptions.plist 2023-08-02 11:20:01.234 xcodebuild[19044:64264] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/cn/nkrr6l5n0jz01kq9jbtb9tg00000gn/T/OurStagingApp_2023-08-02_11-20-01.233.xcdistributionlogs". Exported OurStagingApp to: /Users/runner/work/1/output/build/export/_XcodeTaskExport_OurStagingApp ** EXPORT SUCCEEDED ** I have replaced some logs with "OurStagingApp". Also when trying to build the archive via xcode 15 the button validate is disabled. In my podfile: target.build_configurations.each do |config| config.build_settings['ENABLE_BITCODE'] = 'NO' config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO' config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0' config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' config.build_settings['SKIP_INSTALL'] = 'NO' end Thanks for your help
Posted
by antekwave.
Last updated
.
Post not yet marked as solved
0 Replies
39 Views
Hello, For around 3 month now, my xCode crashes repeatedly after every keystroke in some files. At first it started for a few repeated crashes and then it could stop crashing for an hour or two. Now it just immediately crashing when typing. The project compiles just fine, but when i try to write something it crashes. reopen xcode, press a key in the editor, crashes again. It looks like it start crashing after finishing "Indexing files" step. I work on 1 main project and only it crashes, other / small projects works just fine. I've tried: Cleaning derived data folder/ Build folder. Reinstalling xCode. Deleting xCode preferences. Totally removed all symbols from SymbolCache. Removed all 3rd patry libs. Copied all the files to a new xcodeproj. Various other attempts. Disabled AutoComplete Disabled Source Control Here's the crash log. I wish someone could help with this as i can't progress at all on my work. Looks like "SymbolCacheSupport" is having infinite loop. Cheers for any hint! error log Translated Report (Full Report Below) Process: Xcode [3763] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 15.2 (22503) Build Info: IDEApplication-22503000000000000~3 (15C500b) App Item ID: 497799835 App External ID: 862131722 Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501 Date/Time: 2024-02-09 08:45:16.2443 +0200 OS Version: macOS 14.3.1 (23D60) Report Version: 12 Anonymous UUID: 27D26FCB-948A-1A6E-8564-5C74267CD7EB Time Awake Since Boot: 920 seconds System Integrity Protection: enabled Notes: Extracting libpas PGM metadata failed. Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000173017fa0 Exception Codes: 0x0000000000000002, 0x0000000173017fa0 Thread 7 Crashed:: 0 libsystem_malloc.dylib 0x1858bdbc4 tiny_malloc_from_free_list + 8 1 libsystem_malloc.dylib 0x1858bd53c tiny_malloc_should_clear + 288 2 libsystem_malloc.dylib 0x1858bc2c8 szone_malloc_should_clear + 92 3 CoreFoundation 0x185b09c44 _CFRuntimeCreateInstance + 448 4 CoreFoundation 0x185b09338 __CFStringCreateImmutableFunnel3 + 1932 5 CoreFoundation 0x185b6fc60 -[__NSCFString substringWithRange:] + 164 6 SourceModel 0x12060b190 -[SMSourceModel textOfItem:] + 148 7 SymbolCacheSupport 0x123cde4e8 SwiftContext.processIdentifier(at:in:preferClass:declarationsKind:handleLocal:handleGenericParam:handleClosureArg:handleTypeCast:handleMetaType:handleIDsBeforeFiltering:handlePrevTypes:handleFailedFilter:handleMatches:) + 4208 8 SymbolCacheSupport 0x123cd60f0 SwiftContext.typesForIdentifierExpression(at:in:) + 868 9 SymbolCacheSupport 0x123cd4950 SwiftContext.typesForExpressionEnding(at:in:) + 1604 10 SymbolCacheSupport 0x123cd49f8 SwiftContext.typesForExpressionEnding(at:in:) + 1772 11 SymbolCacheSupport 0x123ceb948 SwiftContext.typesForParenExpression(at:in:) + 1060 12 SymbolCacheSupport 0x123cd493c SwiftContext.typesForExpressionEnding(at:in:) + 1584 13 SymbolCacheSupport 0x123d0452c closure #1 in SwiftContext.parsedTypes(of:in:canCache:) + 296 14 SymbolCacheSupport 0x123d040d4 SwiftContext.parsedTypes(of:in:canCache:) + 1124 15 SymbolCacheSupport 0x123cfc3f8 SwiftContext.findTypesForFunctionOrContainedElement(_:prevID:id:item:sourceModel:idsToTypes:) + 1080 16 SymbolCacheSupport 0x123cfb934 SwiftContext.typesForMatch(_:item:sourceModel:idsToTypes:) + 2252 17 SymbolCacheSupport 0x123cfae64 SwiftContext.typesForMatches(_:item:sourceModel:idsToTypes:) + 748 18 SymbolCacheSupport 0x123cd9d10 handleMatches #1 (matches:item:sourceModel:idsToTypes:) in SwiftContext.typesForIdentifierExpression(at:in:) + 104 19 SymbolCacheSupport 0x123ce1080 SwiftContext.processIdentifier(at:in:preferClass:declarationsKind:handleLocal:handleGenericParam:handleClosureArg:handleTypeCast:handleMetaType:handleIDsBeforeFiltering:handlePrevTypes:handleFailedFilter:handleMatches:) + 15368 20 SymbolCacheSupport 0x123cd60f0 SwiftContext.typesForIdentifierExpression(at:in:) + 868 21 SymbolCacheSupport 0x123cd4950 SwiftContext.typesForExpressionEnding(at:in:) + 1604 22 SymbolCacheSupport 0x123cecb7c SwiftContext.typesForParenExpression(at:in:) + 5720 23 SymbolCacheSupport 0x123cd493c SwiftContext.typesForExpressionEnding(at:in:) + 1584 24 SymbolCacheSupport 0x123d0452c closure #1 in SwiftContext.parsedTypes(of:in:canCache:) + 296 25 SymbolCacheSupport 0x123d040d4 SwiftContext.parsedTypes(of:in:canCache:) + 1124 26 SymbolCacheSupport 0x123cfc3f8 SwiftContext.findTypesForFunctionOrContainedElement(_:prevID:id:item:sourceModel:idsToTypes:) + 1080 27 SymbolCacheSupport 0x123cfb934 SwiftContext.typesForMatch(_:item:sourceModel:idsToTypes:) + 2252 28 SymbolCacheSupport 0x123cfae64 SwiftContext.typesForMatches(_:item:sourceModel:idsToTypes:) + 748 29 SymbolCacheSupport 0x123cd9d10 handleMatches #1 (matches:item:sourceModel:idsToTypes:) in SwiftContext.typesForIdentifierExpression(at:in:) + 104 30 SymbolCacheSupport 0x123ce1080 SwiftContext.processIdentifier(at:in:preferClass:declarationsKind:handleLocal:handleGenericParam:handleClosureArg:handleTypeCast:handleMetaType:handleIDsBeforeFiltering:handlePrevTypes:handleFailedFilter:handleMatches:) + 15368 31 SymbolCacheSupport 0x123cd60f0 SwiftContext.typesForIdentifierExpression(at:in:) + 868 32 SymbolCacheSupport 0x123cd4950 SwiftContext.typesForExpressionEnding(at:in:) + 1604 33 SymbolCacheSupport 0x123cecb7c SwiftContext.typesForParenExpression(at:in:) + 5720 34 SymbolCacheSupport 0x123cd493c
Posted
by Patz267.
Last updated
.
Post not yet marked as solved
0 Replies
17 Views
2024-02-08 9:33:10 AM +0000 [MT] Beginning distribution assistant for archive: App, task: 2 2024-02-08 9:33:10 AM +0000 [MT] state.isLastStepViewControllerNameKnown = 0 2024-02-08 9:33:10 AM +0000 [MT] state.isLastStepViewControllerNameKnown = 0 2024-02-08 9:33:14 AM +0000 [MT] Proceeding to distribution step IDEDistributionMethodStepViewController, context: <IDEDistributionContext: 0x2b70b5770; archive(resolved)="<IDEArchive: 0x60000d2680c0>", distributionTask(resolved)="2", distributionDestination(resolved)="(null)", distributionMethod(resolved)="(null)", team(resolved)="(null)"> Chain (3, self inclusive): <IDEDistributionContext: 0x2b70b5770; archive = "<IDEArchive: 0x60000d2680c0>", distributionMethod="(null)", team="(null)"> <IDEDistributionContext: 0x2a13d4040; archive = "<IDEArchive: 0x60000d2680c0>", distributionMethod="(null)", team="(null)"> <IDEDistributionContext: 0x2bee52b60; archive = "<IDEArchive: 0x60000d2680c0>", distributionMethod="(null)", team="(null)"> </IDEDistributionContext: 0x2b70b5770> 2024-02-08 9:33:14 AM +0000 [MT] state.isLastStepViewControllerNameKnown = 0 2024-02-08 9:33:20 AM +0000 [MT] Proceeding to distribution step IDEDistributionAnalyzeArchiveStepViewController, context: <IDEDistributionContext: 0x15766f880; archive(resolved)="<IDEArchive: 0x60000d2680c0>", distributionTask(resolved)="2", distributionDestination(resolved)="1", distributionMethod(resolved)="<IDEDistributionMethodDevelopmentSigned: 0x6000435343d0>", team(resolved)="(null)"> Chain (7, self inclusive): <IDEDistributionContext: 0x15766f880; archive = "<IDEArchive: 0x60000d2680c0>", distributionMethod="<IDEDistributionMethodDevelopmentSigned: 0x6000435343d0>", team="(null)"> <IDEDistributionContext: 0x15763e730; archive = "<IDEArchive: 0x60000d2680c0>", distributionMethod="<IDEDistributionMethodDevelopmentSigned: 0x6000435343d0>", team="(null)"> <IDEDistributionContext: 0x1580814d0; archive = "<IDEArchive: 0x60000d2680c0>", distributionMethod="<IDEDistributionMethodDevelopmentSigned: 0x6000435343d0>", team="(null)"> <IDEDistributionContext: 0x158080db0; archive = "<IDEArchive: 0x60000d2680c0>", distributionMethod="<IDEDistributionMethodDevelopmentSigned: 0x6000435343d0>", team="(null)"> <IDEDistributionContext: 0x2b70b5770; archive = "<IDEArchive: 0x60000d2680c0>", distributionMethod="<IDEDistributionMethodDevelopmentSigned: 0x6000435343d0>", team="(null)"> <IDEDistributionContext: 0x2a13d4040; archive = "<IDEArchive: 0x60000d2680c0>", distributionMethod="(null)", team="(null)"> <IDEDistributionContext: 0x2bee52b60; archive = "<IDEArchive: 0x60000d2680c0>", distributionMethod="(null)", team="(null)"> </IDEDistributionContext: 0x15766f880>
Posted
by aarthi.
Last updated
.
Post not yet marked as solved
1 Replies
81 Views
Hello, I have a question about building a project in Xcode 15.2. When I build an iOS project in Xcode 15.2, I get a message like this: "Assets.xcassets: Could not get trait set for device iPad14,3 with version 17.2" though I have no trouble in building and running a project, I want to fix this. If anyone solve problem like this, please let me know how to fix it. thanks, c00012
Posted
by c00012.
Last updated
.
Post marked as solved
2 Replies
496 Views
(Sometimes I think I'm the only person who's actually using the new Xcode multiplatform app paradigm! So hard finding info on the various "gotchas".) My multiplatform app supports macOS (not Catalyst), iOS, iPadOS, and tvOS. It's an internal testing app, never meant to be on any app store. It has only one Target (the new multiplatform target). I've been able to work through all the teething issues except for Entitlements. My iOS and tvOS app both use 3 entitlements that are for those platforms only. The macOS version doesn't need or want them. But if those 3 entitlements are in the .entitlements file, the macOS version won't launch at all (not even in the sim). Of course as soon as I take those 3 entitlements out of the file, it runs. Sooo...in a multiplatform targeted app how do you specify different entitlements for different platforms? Or is it not possible? Thanks!
Posted
by Suges.
Last updated
.