Welcome to the Apple Developer Forums

Post your questions, exchange knowledge, and connect with fellow developers and Apple engineers on a variety of software development topics.

For questions about using Apple hardware and services, visit Apple Support Communities

Posts

Sort by:
Post not yet marked as solved
0 Replies
6 Views
Hi there, I have a problem archiving a Flutter App containing an Apple WatchOS Target. The WatchOS target is built with the new logic, containing only one app and no Watchkit extension. When I build the app on my iPhone/Simulator everything is working just fine and they can communicate without any problems. The error occurs when I'm trying to upload my built archive to App Store Connect for Testflight testing purposes. It fails with the error Asset validation failed: "Missing Info.plist value. A value for the key “WKApplication“, or “WKWatchKitApp“ if your project has a WatchKit App Extension target, is required in “Runner.app/Watch/MyWatchOSApp Watch App.app“ bundle. For details, see: https://developer.apple.com/documentation/watchkit/creating_independent_watchos_apps/setting_up_a_watchos_project". I tried to fix it by adding a info.plist to the WatchOS target, which isn't created initially. By doing so I can not build the Runner App anymore because it fails with "A WatchKit app within this app is not a valid bundle.". Can anyone help me fix it please? Thank you! Greetings
Posted
by
Post not yet marked as solved
0 Replies
7 Views
Hi, We are been working to reduce our app size for some time now. One my research I got to know about Reflection MetaData Level in build settings. Disabling (Setting it to None) it for all the modules have reduced around 2 MB of my App size. But wanted to know if doing so is a good practice or not. Will applying this setting on the Release scheme will have any impact ? Thanks in advance.
Posted
by
Post not yet marked as solved
0 Replies
6 Views
How do I know is my MacOS Ventura is a beta version? Since last update I am not able to import pictures from my iPhone 12. Called support and tech said it was because I was running a MacOS beta. I called tech support several times now and I can't get help on 1. installing Ventura "beta." 2. import my photos. It sounds so simple it is complicate!!
Posted
by
Post not yet marked as solved
0 Replies
5 Views
Parallel Android code is below: public static String getEncryptedText(String plainText, SecretKey secretKey) { if(plainText == null) { plainText = ""; } try { byte[] ivBytes = new byte[GCM_IV_LENGTH]; SecureRandom random = new SecureRandom(); random.nextBytes(ivBytes); String iv = Base64.getEncoder().encodeToString(ivBytes); byte[] cipherText = encrypt(plainText.getBytes(), secretKey, ivBytes); String text = Base64.getEncoder().encodeToString(cipherText); text = iv+text; return text; } catch (Exception e) { e.printStackTrace(); return ""; } } private static byte[] encrypt(byte[] plaintext, SecretKey key, byte[] nonce) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException { Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding"); SecretKeySpec keySpec = new SecretKeySpec(key.getEncoded(), "AES"); GCMParameterSpec gcmParameterSpec = new GCMParameterSpec(GCM_TAG_LENGTH * 8, nonce);
Posted
by
Post not yet marked as solved
0 Replies
8 Views
Hi, From what I saw, the NavigationStack allows for different types but replaces the view on top of the previous view. I want to use the sidebar in the NavigationSplitView in a similar way to the macOS "Systems Settings" app, basically more like a top-level menu leading to different views instead of the same content view. The only option I see is sticking with destination-based NavigationLinks which breaks all the advantages of switching to the new way. Does navigationDestination(for:destination:) work for NavigationSplitView? It would be so intuitive, especially with the NavigationSplitView defaulting to a Stack's behavior on smaller screens. If not, how can such a menu or multi-type list be achieved?
Posted
by
Post not yet marked as solved
0 Replies
20 Views
Hi this is my first time building an app my app builder has been given app manager access and now she wants access to admin ??? That is pretty much the same as me! Surely she can build the app well finish anyway and send me prototype as app manager ?
Posted
by
Post not yet marked as solved
0 Replies
24 Views
Hi guys! I'm using Swift in developing applications for iOS. Currently, I'm interested in learning Objective-C to build applications. However, when I create a project with Obj-C, I found out that, there are some differences between using "Obj-C in iOS Dev" and "Obj-C in MacOS CommandLine". For instance: declaring method; iOS Dev Environment: -(void)getFunc {..} macOS Dev Environment: void getFunc() {...} You can see here, there are -(void) and void only. Anyway, can you recommend some documents to study Objective-C? Thank you for spending time for my post! Have a great day! Best regard from Vietnam!
Posted
by
Post not yet marked as solved
0 Replies
20 Views
Well I'm unable to package an Unreal Engine game with productbuild: error: Can't write temporary package to, after doing this: changing rpath to every executable needed to change install_name_tool -rpath "path/tofile/incorrect" "path/tofile/correct" "path/tofile/correct/file.dylib" and adding the needed with install_name_tool -add_rpath "path/tofile/correct" "path/tofile/correct/file.dylib" then signing each dylib with find Myapp/Contents | grep .dylib | xargs codesign -f -v -s "Apple Distribution: Team (ID)" --entitlements "entitlements.plist" --options runtime --timestamp then sign the executable with codesign -f --deep -s "Apple Distribution: Team (ID)" Myapp.app then try the pkg file to send to store with productbuild --sign "3rd Party Mac Developer Installer: Team (ID)" --component Myapp.app /Applications app.pkg and finally I couldn't package with error: productbuild: error: Can't write temporary package to and I really wanted to publish the game in Apple Mac Store. Is there any fix for this? Any help will be appreciated. Thank you
Posted
by
Post not yet marked as solved
0 Replies
19 Views
Hello, We have encountered an issue on iPhone 14 pro and iOS 16.1.1 Add Widget to Home screen, Widgets include IntentConfiguration. After 48 hours , Home screen widgets will be reset to default settings, all intent configuration are been cleared. Every 48 hours, all the widget in home screen will be reset. Is it iOS 16.1.1 bugs? Thanks~
Posted
by
Post not yet marked as solved
0 Replies
17 Views
so I'm from Jakarta, Indonesia, and had been making phone calls to apple support for days, but every time I got through to their support advisor (1 out of 10 succeeded) it feels like they were making a phone call near a hurricane (I can only hear the wind gusting violently). Does anybody else have this problem or is it only me (for the record, I've been using different phones but the result is still the same)?
Posted
by
Post not yet marked as solved
0 Replies
14 Views
This only started happening after upgrading to Ventura. Usually a 3rd party plug-in is to blame, but this looks like the OS. Any help would be greatly appreciated. Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x7ff812b4dbea objc_release + 42 1 libobjc.A.dylib 0x7ff812b51a52 AutoreleasePoolPage::releaseUntil(objc_object) + 168 2 libobjc.A.dylib 0x7ff812b4e8ff objc_autoreleasePoolPop + 227 3 CoreFoundation 0x7ff812f55341 _CFAutoreleasePoolPop + 22 4 Foundation 0x7ff813cf7b82 -[NSAutoreleasePool drain] + 133 ** Translated Report (Full Report Below) Process: studioapp [1586] Path: /Applications/Studio One 4.app/Contents/MacOS/studioapp Identifier: com.presonus.studioone2 Version: 4.6.2 Build 58729 (4.6.2) Code Type: X86-64 (Translated) Parent Process: launchd [1] User ID: 501 Date/Time: 2022-11-29 17:56:04.7222 -0700 OS Version: macOS 13.0.1 (22A400) Report Version: 12 Anonymous UUID: 1413878A-CA17-AF7C-C0F7-E5FB687AEEC8 Time Awake Since Boot: 390 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x000007f8d73c1580 Exception Codes: 0x0000000000000001, 0x000007f8d73c1580 Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11 Terminating Process: exc handler [1586] VM Region Info: 0x7f8d73c1580 is not in any region. Bytes after previous region: 8284307985793 Bytes before following region: 131480125958784 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL commpage (reserved) 1000000000-7000000000 [384.0G] ---/--- SM=NUL ...(unallocated) ---> GAP OF 0x7f1d71700000 BYTES MALLOC_LARGE 7f8d71700000-7f8d717a4000 [ 656K] rw-/rwx SM=PRV Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x7ff812b4dbea objc_release + 42 1 libobjc.A.dylib 0x7ff812b51a52 AutoreleasePoolPage::releaseUntil(objc_object**) + 168 2 libobjc.A.dylib 0x7ff812b4e8ff objc_autoreleasePoolPop + 227 3 CoreFoundation 0x7ff812f55341 _CFAutoreleasePoolPop + 22 4 Foundation 0x7ff813cf7b82 -[NSAutoreleasePool drain] + 133 5 Foundation 0x7ff813cf8ba8 _NSAppleEventManagerGenericHandler + 98 6 AE 0x7ff81945ed9d 0x7ff819453000 + 48541 7 AE 0x7ff81945e608 0x7ff819453000 + 46600 8 AE 0x7ff819457c1d aeProcessAppleEvent + 419 9 HIToolbox 0x7ff81cdc928f AEProcessAppleEvent + 54 10 AppKit 0x7ff815fede74 _DPSNextEvent + 1738 11 AppKit 0x7ff815fec9b8 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1219 12 AppKit 0x7ff815fdeff3 -[NSApplication run] + 586 13 Foundation 0x7ff813d12bd7 -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 379 14 Foundation 0x7ff813d128fc -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 124 15 cclgui 0x10f47a19e 0x10f2f4000 + 1597854 16 studioapp 0x1027e1284 0x1027e0000 + 4740 17 studioapp 0x1028e27f6 0x1027e0000 + 1058806 18 dyld 0x203ef0310 start + 2432
Posted
by
Post not yet marked as solved
1 Replies
19 Views
I am testing postbacks by using StoreKitTest and followed the sample code for creating test postback, updating postback conversion value and sending/receiving postbacks as shown here in Apple's StoreKit test documentation. Executing test for sending postback fails as flushPostbacks(responses:) returns "Error Domain=ASDErrorDomain Code=1270 "No test postbacks found". I checked that the test postback exists our postback server is up and running and that it is accepting connections project is configured project's Info.plist has our ad network identifier source app identifier is 0 (as it is in testing environment) Can someone please tell me why test postbacks cannot be found in flushPostbacks(responses:) and also point me to the ASDErrorDomain documentation (There doesn't seem any documentations)?
Posted
by
Post not yet marked as solved
0 Replies
13 Views
I try to get AVCaptureDevice instance of a virtual audio plugin, like blackhole. I need to call AVCaptureDevice.DiscoverySession, because old method (AVCaptureDevice.devicesWithMediaType) is deprecated. First, I cannot find enum for virtual audio plugin. I try .externalUnknown or .builtInMicrophone. Both result is empty. I like to know how to list virtual microphone and get AVCaptureDevice instance. let deviceDiscoverySession = AVCaptureDevice.DiscoverySession(     deviceTypes: [ .externalUnknown ],     mediaType: .audio,     position: .unspecified ) let devs = deviceDiscoverySession.devices print("devices=\(devs)") // empty list
Posted
by
Post not yet marked as solved
1 Replies
31 Views
Hello, Is it possible to make an app that when closed and with no internet/data connection, if user enter a concrete area (detected with GPS), app send a push notification? I thought yes but then I saw that: https://www.rfwireless-world.com/Terminology/What-is-Geofencing-and-How-Geofencing-works.html It seems it is not possible?? (they are talking about android, but what about iOS?) Thanks in advance for the help.
Posted
by
Post not yet marked as solved
0 Replies
20 Views
Hi , I want to check what payment options I need to implement in my Mobile app. My app will be free and it will be classified advertisement app and user will pay to put the advertisement on mobile app for certain period of time. Advertisement charges can be vary on date and time. Thanks
Posted
by
Post not yet marked as solved
0 Replies
18 Views
Hi there! I was trying to debug my app on iOS16.1 simulator, but find out that MPNowPlayingInfoCenter not working in iOS16.1 at all, I also downloaded apple own sample project from this link Apple Developer Documentation: link still no luck, nothing appears in lock screen. is this a bug in ios16.1 simulator or XCode. Thanks!
Posted
by

Pinned Posts

Categories

See all