I want to release a Framework F, containing several other frameworks (such as Realm, Appetitive, Cocoalumberjack, PhoneNumberKit) for use by app A.
According to this article: https://medium.com/@bittudavis/how-to-create-an-umbrella-framework-in-swift-ca964d0a2345
They write, without referencing a source: "Although Apple discourage creating umbrella framework".
Is that true, do Apple discourage umbrella frameworks, if so why and is it a very strong discourage or a mild one?
If not discouraged, then how can this be achieved with Xcode 16?
I've been attempting to follow a few tutorial to achieve this, such as https://medium.com/john-lewis-software-engineering/adding-a-third-party-framework-inside-a-first-party-framework-in-xcode-3ba58cfd08da
however so far without any success. This last article mentions the Link Binary With Libraries section, which doesn't exist in Xcode 16.
There's the Frameworks, Libraries, and Embedded Content section where I have been attempting to add the frameworks into my Framework F (choosing Embed without Signing).
I'm able to successfully build Framework F, but when app A attempts to use it (adding F to the Frameworks, Libraries, and Embedded Content section with option embed and sign, or embed and don't sign, makes no difference) then I get run time errors about the umbrellaed frameworks not being able to be found.
Xcode
RSS for tagBuild, test, and submit your app using Xcode, Apple's integrated development environment.
Post
Replies
Boosts
Views
Activity
I understand that there are no delegate methods for this. But to determine a positive consent from user to Record Screen needs to be evaluated via block parameter.
When user denies the permission by mistake, and, if user tries again, the alert is not showing up. How do I reset the permission and throw the below alert again?
Here's the error I'm getting:
Communication with Apple failed
Your team has no devices from which to generate a provisioning profile. Connect a device to use or manually add device IDs in Certificates, Identifiers & Profiles. https://developer.apple.com/account/
I've requested a certificate from certificate authority, added it to my developer account, downloaded the added certificate and added it to my machine yet I'm still getting the error above. How can I resolve this?
Process: Xcode [46981]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 16.1 (23503)
Build Info: IDEApplication-23503000000000000~2 (16B40)
App Item ID: 497799835
App External ID: 869932297
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2024-10-29 22:18:00.8018 -0400
OS Version: macOS 15.0.1 (24A348)
Report Version: 12
Anonymous UUID: F4176F67-35F3-B671-D872-71337475C3C0
Sleep/Wake UUID: 99252DE9-57D7-4F75-8279-42DA5C7689AD
Time Awake Since Boot: 170000 seconds
System Integrity Protection: enabled
Crashed Thread: 1
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process: Xcode [46981]
Application Specific Information:
abort() called
On Xcode when I try to build/run, I get 'React/RCTEventEmitter.h' file not found. The same works when I use yarn ios --simulator <>. I tried installing the latest version of Xcode, still same problem. I have Xcode 16.1 now.
Showing Recent Messages
ScanDependencies /Users/sunnalla/Library/Developer/Xcode/DerivedData/oceanmobileapp-fqewvpyrkyjkudecrdfhqvtadmcl/Build/Intermediates.noindex/PushNotificationIOS.build/Debug-iphonesimulator/RNCPushNotificationIOS.build/Objects-normal/arm64/RNCPushNotificationIOS.o /Users/sunnalla/Documents/Ocean/oma_obs_sub/src/node_modules/@react-native-community/push-notification-ios/ios/RNCPushNotificationIOS.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNCPushNotificationIOS' from project 'PushNotificationIOS')
cd /Users/sunnalla/Documents/Ocean/oma_obs_sub/src/node_modules/@react-native-community/push-notification-ios/ios
Using response file: /Users/sunnalla/Library/Developer/Xcode/DerivedData/oceanmobileapp-fqewvpyrkyjkudecrdfhqvtadmcl/Build/Intermediates.noindex/PushNotificationIOS.build/Debug-iphonesimulator/RNCPushNotificationIOS.build/Objects-normal/arm64/e6072d4f65d7061329687fe24e3d63a7-common-args.resp
builtin-ScanDependencies -o /Users/sunnalla/Library/Developer/Xcode/DerivedData/oceanmobileapp-fqewvpyrkyjkudecrdfhqvtadmcl/Build/Intermediates.noindex/PushNotificationIOS.build/Debug-iphonesimulator/RNCPushNotificationIOS.build/Objects-normal/arm64/RNCPushNotificationIOS.o.scan -- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -ivfsstatcache /Users/sunnalla/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator18.1-22B74-3d93aac3a03ebac1dd8474c5def773dc.sdkstatcache -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/sunnalla/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-implicit-fallthrough -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/sunnalla/Library/Developer/Xcode/DerivedData/oceanmobileapp-fqewvpyrkyjkudecrdfhqvtadmcl/Index.noindex/DataStore @/Users/sunnalla/Library/Developer/Xcode/DerivedData/oceanmobileapp-fqewvpyrkyjkudecrdfhqvtadmcl/Build/Intermediates.noindex/PushNotificationIOS.build/Debug-iphonesimulator/RNCPushNotificationIOS.build/Objects-normal/arm64/e6072d4f65d7061329687fe24e3d63a7-common-args.resp -MMD -MT dependencies -MF /Users/sunnalla/Library/Developer/Xcode/DerivedData/oceanmobileapp-fqewvpyrkyjkudecrdfhqvtadmcl/Build/Intermediates.noindex/PushNotificationIOS.build/Debug-iphonesimulator/RNCPushNotificationIOS.build/Objects-normal/arm64/RNCPushNotificationIOS.d --serialize-diagnostics /Users/sunnalla/Library/Developer/Xcode/DerivedData/oceanmobileapp-fqewvpyrkyjkudecrdfhqvtadmcl/Build/Intermediates.noindex/PushNotificationIOS.build/Debug-iphonesimulator/RNCPushNotificationIOS.build/Objects-normal/arm64/RNCPushNotificationIOS.dia -c /Users/sunnalla/Documents/Ocean/oma_obs_sub/src/node_modules/@react-native-community/push-notification-ios/ios/RNCPushNotificationIOS.m -o /Users/sunnalla/Library/Developer/Xcode/DerivedData/oceanmobileapp-fqewvpyrkyjkudecrdfhqvtadmcl/Build/Intermediates.noindex/PushNotificationIOS.build/Debug-iphonesimulator/RNCPushNotificationIOS.build/Objects-normal/arm64/RNCPushNotificationIOS.o -index-unit-output-path /PushNotificationIOS.build/Debug-iphonesimulator/RNCPushNotificationIOS.build/Objects-normal/arm64/RNCPushNotificationIOS.o
/Users/sunnalla/Documents/Ocean/oma_obs_sub/src/node_modules/@react-native-community/push-notification-ios/ios/RNCPushNotificationIOS.h:8:9: error: 'React/RCTEventEmitter.h' file not found (in target 'RNCPushNotificationIOS' from project 'PushNotificationIOS')
/Users/sunnalla/Documents/Ocean/oma_obs_sub/src/node_modules/@react-native-community/push-notification-ios/ios/RNCPushNotificationIOS.m:8:9: note: in file included from /Users/sunnalla/Documents/Ocean/oma_obs_sub/src/node_modules/@react-native-community/push-notification-ios/ios/RNCPushNotificationIOS.m:8:
/Users/sunnalla/Documents/Ocean/oma_obs_sub/src/node_modules/@react-native-community/push-notification-ios/ios/RNCPushNotificationIOS.h:8:9: 'React/RCTEventEmitter.h' file not found
Hi,
I have been building a MacCatalyst versions of an iOS app for years using a separate build that included a specific .entitlements file that excludes the com.apple.security.device.camera. Yet when I now build with Xcode 16.1 that entitlement is included.
I have double checked my signing entitlement for my MacCatalyst build it is configured properly. I have check my .entitlement file to ensusre com.apple.security.device.camera is not there. All is as it should be.
I have changed nothing, my build flow is the same.
App Store Review has prevented the Mac build to be release becuse the com.apple.security.device.camera is set.
What can I do to correct this?
When converting some of our frameworks to universal frameworks (multiple target platforms), error messages appear in Xcode that we believe are incorrect:
Something like this: Umbrella header for module ‘TestFramework’ does not include header ‘iOS.h’
This post links to an example project which shows the behaviour (UmbrellaHeadersTest.zip).
See the included README.txt
Any suggestions on how to reliably eliminate these warnings would be greatly appreciated!
UmbrellaHeadersTest.zip
Environment
Xcode: 16.1
Swift 6 and SwiftUI for macOS development
macOS Sequoia
I have an app for macOS, and that uses an interactive widget feature.
On macOS Sequoia, the widget does not display anything and widget intent doesn't work either. I tested it on macOS Sonoma and it totally works. I assume it's a macOS bug. The app has been working fine before Sequoia.
Even on Xcode, when I tried to run the widget preview, Failed to load widget. The operation couldn't be completed. (WidgetKit_Simulator.WidgetDocument.Error error 4.).
I could avoid the error by changing version and build numbers, but I still got The operation couldn't be completed. (CHSErrorDomain error 1103.)
How am I able to fix the issue? I wanna at least know if its a bug from the app or macOS Sequoia.
When I airdrop my archived app to my device it runs perfectly. But when I try to share with colleagues using the manifest.plist in a website link, the app will not install (Even on the same device where the airdropped app did). I get "Unable to Install [app name]"
Any help with this will be appreciated.
Here is my manifest.plist:
`<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>https://www.scorcent.com</string>
</dict>
<dict>
<key>kind</key>
<string>display-image</string>
<key>url</key>
<string>https://www.scorcent.com/image_57x56.png</string>
</dict>
<dict>
<key>kind</key>
<string>full-size-image</string>
<key>url</key>
<string>https://www.scorcent.com/image_512x512.png</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>ScorCent</string>
<key>bundle-version</key>
<string>6.0</string>
<key>kind</key>
<string>software</string>
<key>platform-identifier</key>
<string>com.apple.platform.iphoneos</string>
<key>title</key>
<string>NO REGRETS</string>
</dict>
</dict>
</array>
</dict>
</plist>
`And here is my web url;
<a href=itms-services://?action=download-manifest&url=https://www.scorcent.com/manifest.plist" Install App
I am encountering multiple problems deploying an app using Xcode.
First, I could not install Xcode from the App Store. I tried multiple times, rebooting etc. Finally I found a link to download an xip file from the developer site and unzip it. That worked. It took 2 hours.
Now I'm trying to build my app. I get a message saying IOS 18.1 not installed. I try clicking on it an select Manage Run Destinations. It brings me to the Devices popup screen but I am unable to select anything. I tried setting up a Simulator as well. Still unable to select a desitiation.
So then I tried updating my IPAd to IOS 18.1 thinking that might help. Big mistake. First I got a message saying some library were incompatible. Now I have a message saying Unknown Error. Disconnect and reconnect cables which I have done multiple times. This of course includes multiple times of clicking trust this device, then entering device password, then entering the auth code. They don't make it easy.
I tried clicking the Get for IOS 18.1. I really don't want to update my machine to this. I'm actually using a friend's MAC. When I did this it tells me it requires 8gb and I don't have enough disk space. But I do have 20gb available.
So about 4 hours of trying and nothing works. Two hours to install Xcode, can't select a different destination, can't connect my IPAd anymore, can't download the update. Not even sure why the device or destination is necessary. It's not necessary to build the same app for Android.
I had similar issues with XCode in my initial attempts just to get the app signed until I figured out that I needed to have a device attached for the provisioning to work. That took days including trying to find a UDID from ITunes(???) and other wild goose chases. That makes no sense whatsoever. Now I can't even do that.
So I guess my question is/are:
Do I have a new buggy version of XCode and if so, how do I get a previous one?
How do I select a different destination?
How do I get past the IOS 18.1 requirement?
How do I download IOS 18.1 if that's what I decide to do?
How do I connect my IPad?
Can I go back to previous OS on IPad if 18.1 doesn't work with XCode?
How do I do certificate provisioning if I can't connect my IPad?
Other than that everything works great.
I have been unable to view individual reports for some time now. I can view crash reports and I can view the list of all the other report types (Disk Writes, Energy, Hangs, and Launches), but all individual reports (which would contain the backtrace etc.) show an error:
Failed to Download Energy Logs
An error occurred while downloading energy reports. Please provide a valid value.
This happens on macOS 14.7, macOS 15.0.1, Xcode 15.1, Xcode 15.3, Xcode 16.0, Xcode 16.1, and Xcode 16.2 beta 1, across 2 different Macs. Other people on my team can view the same reports.
I'm starting to think this is something to do with how my account is setup. I'm an admin on the App Store Connect account so I don't think it's a permissions issue.
I got sent a crash log from a user of my app. I followed the procedure that Apple specifies to symbolicate the crashlog, but that does not succeed (see https://developer.apple.com/documentation/xcode/adding-identifiable-symbol-names-to-a-crash-report#Symbolicate-the-crash-report-in-Xcode)
XCode complains that
"error: unable to locate main executable (arm64)"
The location of the main executable is given in the crashlog at a path that starts with /private/var/containers/Bundle/Application/ But the /private/var/containers directory on my system is empty.
I have tried to search my filesystem for the specific image that is mentioned in the crashlog, but it is nowhere to be found.
Because the image is not available, I cannot symbolicate the crashlog from the commandline using atos either.
The crashlog is from an iPhone running iOS 18.0.1, if that makes a difference.
Anybody knows how to resolve this?
I'm building a VPN app with Flutter, and I'm coming across this issue(only on iOS) - "${appName} must be updated by the developer before ${appName} can be connected."
I have checked and tried almost all the solutions on the internet, but none work. Can anyone who has encountered this before assist or point me toward resources that can help?
Hi,
Xcode 16.0 is crashing whenever I try to delete a dependency from my project. Is anyone facing the same issue or anyone who has figured out the root cause of it?
When I try to download a file through a link on an iOS 18 device, the message "Failed to complete the operation. No such file or directory" appears. However, this link can be used to download files, and I have never encountered this error on devices below iOS 18. What should I do?
Hi everyone. Does anyone know how to fix this error message? It pops up when I try to build the code. Changing it from my phone to the simulator doesn't help. The project is located on my Desktop, and I have full read and write access to my Desktop. I can't figure out for the life of me how to fix it :(
Hi everyone. I am trying to build an app that's capable of displaying a RTSP stream of my IP camera. I am building it with GStreamer and using a C Bridge Header so it's Swift compatible. I keep getting this error, and I can't figure out how to solve it. I've tried everything I can think of, and everything ChatGPT can think of (lol). Anyone any idea's? Sorry if this post falls in the wrong category. I didn't see any categories that my problem fits in, so I chose this one.
Hi! Predictive code completion once worked, but on Xcode relaunch another download got issued and it's failing.
Anybody can help?
The operation couldn’t be completed. (ModelCatalog.CatalogErrors.AssetErrors error 1.)
Domain: ModelCatalog.CatalogErrors.AssetErrors
Code: 1
User Info: {
DVTErrorCreationDateKey = "2024-10-27 17:00:22 +0000";
}
--
Failed to find asset: com.apple.fm.code.generate_small_v1.base - no asset
Domain: ModelCatalog.CatalogErrors.AssetErrors
Code: 1
--
System Information
macOS Version 15.0.1 (Build 24A348)
Xcode 16.0 (23051) (Build 16A242d)
Timestamp: 2024-10-27T19:00:22+02:00
I am building an MPI C project in Xcode. In order to do run it, I had to:
Specify /path/to/mpiexec in Edit Scheme -> Run -> Info -> Executable, instead of the "default" one, say myprogram if my target is called myprogram.
Specify the following arguments in Edit Scheme -> Run -> Arguments -> Arguments Passed On Launch: -np 4, ${BUILT_PRODUCTS_DIR}/${EXECUTABLE_NAME}
This is clearly analogous to a mpiexec -np 4 a.out command launched on terminal.
The problem is, when I want to debug my application, the execution doesn't "stop" on the breakpoints.
I instantly thought that it is because of the check box Debug Executable in Edit Scheme -> Run -> Info -> Executable. Indeed (as I have just said), the Executable specified in there is mpiexec and not myprogram.
Thus, is there an option or some command I could set in Xcode to attach the lldb to myprogram?
I recently bought a new phone and update xcode version to the latest. An app that I have been developing and worked perfectly fine would not be runned. I kept getting errors similar to below. Is that anything wrong with my setting or something?
Class _TtC6SQLite6Backup is implemented in both /System/Library/PrivateFrameworks/LinkServices.framework/LinkServices (0x1f16db218) and /private/var/containers/Bundle/Application/E2xxxx2xxA-DF7B-xx-***-xxxxxxxx/xxxx.app/xxxxx.debug.dylib (0xxxxxx3d0). One of the two will be used. Which one is undefined.