Post

Replies

Boosts

Views

Activity

Increase in app clip size.
Hello, I am working on app clips and I wish to know how is the code packaged when the build gets uploaded to App Store Connect? Is there any documentation around this or can you help me with what happens while generating the binary? I added 7 files to app clip target. Some are of 1 KB and others are of 2KB when I look for it's size on my MacBook. However when I upload a build to App Store Connect with these 7 files, I am noticing the size of App Clip increasing by almost 1MB. These files are code files i.e. .swift files and not assets. How is it possible to that the App Clip size grows by an MB for these 7 files? Even if I consider them to be 2KB each, shouldn't the app clip size increase just by 14 or so KB's?
1
0
28
Jun ’25
Branding app clips for different businesses
Hello, I am new to app clips and working on app clips that will be used by different customers of ours and they would want to create their own app clip card with different images, title, subtitle and different parameters in the URL. I went through different WWDC videos related to app clips and also through the app clips documentation and all of them says that a different configuration for each customer needs to be made in App Store Connect through Advanced Experiences with URL's specific to each customer/business. If I am understanding it right, then the customers will have to share their images, title and subtitle with us to configure it in app store connect. That will be an extra overhead of handling extra number of requests for each customers. Just checking if there is any other way where the customers/business can create/configure for their own app clip card?
1
0
40
Apr ’25
App Clip is installed but not displayed on the device.
Hello, I am new to App Clip development. I have uploaded a build with app clip to App Store Connect and the build is visible on the TestFlight. I am able to open the App Clip via TestFlight and I do see everything working, but the app clip is not getting added in Recent Apps folder and is no where found on the device. If I want to launch the app clip again, I have to scan the QR code again. When I use other app clips, like Panera Bread, the app clip stays in my Recent App/Recently Added folder. My app clip size is close to 75MB. Is the app clip not in Recently Added folder because the app clip is installed from TestFlight or is it happening because of the app clip size? Thanks!
2
0
84
Apr ’25
App clip size with dependency SDK in it.
I just started with App Clips so quite new to it. One of our dependencies is very big in size (85+ MB) which is making the app size almost 87MB's uncompressed and 40MB's compressed with just this dependency and no other app clip related code in it. I created a App Thinning size report for the app clip and even with bigger app clip size, I decided to upload the beta build to App Store Connect for testing purposes. On App Store Connect, app clip size is 70+ MB and to my surprise it passed the App Store Connect review and I was able to install this app clip on my device from Test Flight. If I add functionality to the app clip with this bigger dependency SDK, then the app clip size is going to increase further and am worried that it could get rejected when I push it to app store. Minimum iOS version of the app is 16.4, so my understanding is that the maximum app clip size allowed is 15MB. Am trying to figure out, how the app clip build was approved on app store connect and if dependency sizes in app clips are ignored? Attaching screenshot of App Thinning report and screenshot of App Store Connect build with this App Clip.
1
0
43
Mar ’25
Ellipsis getting added in the toolbar text when font is set on attributed string
In my project, I am getting some text from backend which could have html tags. For this, I am converting the string to attributed string. However I noticed that when the string has html tags with color in it and when the text is displayed in toolbar, then the text displays with an ellipsis towards the end. Sharing code below: import SwiftUI struct ContentViewA: View { @State private var displayText: AttributedString? var body: some View { NavigationStack { VStack { Text(displayText ?? "") } .toolbar { ToolbarItem(placement: .cancellationAction) { Button { } label: { Text("Done").font(.body.bold()) } } ToolbarItem(placement: .principal) { Text(displayText ?? "") } } .onAppear { let string = "<div><p><span style=\"color:#FF0000;\">Hello World</span></p></div>" displayText = string.convertToAttributedString /// Note: If I don't set the font, then the ellipsis are not displayed in the toolbar, but I need this font style. displayText?.font = .body.bold() } } } } extension String { var convertToAttributedString: AttributedString? { guard let data = data(using: .utf8) else { return nil } var attributedString: AttributedString? if let nsAttributedString = try? NSAttributedString(data: data, options: [.documentType: NSAttributedString.DocumentType.html, .characterEncoding: String.Encoding.utf8.rawValue], documentAttributes: nil) { attributedString = try? AttributedString(nsAttributedString, including: \.uiKit) } return attributedString } } I am printing displayText in the body of the view and am not seeing ellipsis at the end of the string, but in toolbar, I am seeing ellipsis. I am unable to figure out what's causing this and what can be the fix for it. However, if I avoid setting the font on attributed string, then the ellipsis are not displayed in toolbar. However, I need to set the string to a specific font style. How can I avoid ellipsis in toolbar and while also setting the required font on the string?
Topic: UI Frameworks SubTopic: SwiftUI
7
0
249
Mar ’25
Preventing app from installing on iPad.
Hello, The app that I am working on has capabilities where it needs Phone App to place a call. The app has never been published to App Store before and will be publishing soon after making the configuration changes to prevent it from installing on iPad. I went through Apple documentation and while I understand that Apple expects apps to be allowed to installed on as many device sizes as possible, this app needs Phone app and hence I wanted to prevent it from getting installed on iPad, just like Whatsapp does. In Xcode, I only have iPhone in supported destinations and I also added "Required device capabilities" in Info.plist with values as arm7, Camera flash (since the app uses torch) and Phone App. However, when I sideload the app on iPad, I am able to install the app (looks like emulated iPhone) instead of getting an error. Are there any other changes that I need to make to prevent installation of the app on iPad?
0
1
369
Feb ’25
Releasing iPhone only app.
Have a new app that we plan to release to the App Store and we want to support it only on iPhone for now. We have removed all the supported destinations in app's target -> general settings and it only has iPhone now. Please note that this app has never been released to app store before. We do plan to add iPad support in upcoming releases. For this first release of our app, will the end user be still able to download the app on iPad in compatibility mode? Or what would be the behavior when the user would search for my app on iPad?
0
0
329
Jan ’25
Name of .xcdatamodel gets cleared out automtically from pbxproj file.
I have added core data to my project and below is the code block of how it's section in pbxproj file looks like. However whenever I make any changes to the project i.e. changing build version or adding a deleting new files to the project, I have noticed "name = "sample-app.xcdatamodeld";" gets deleted automatically from the project file and I have to manually reverse that change. Am I missing any setting for core data or is it a bug somewhere in XCode or Core Data? I am using XCode 15. /* Begin XCVersionGroup section */ 4683EC5B2C10F8B800A5081B /* sample-app.xcdatamodeld */ = { isa = XCVersionGroup; children = ( 4683EC5C2C10F8B800A5081B /* sample-app.xcdatamodel */, ); currentVersion = 4683EC5C2C10F8B800A5081B /* sample-app.xcdatamodel */; name = "sample-app.xcdatamodeld"; path = "sample-app.xcdatamodeld"; sourceTree = "<group>"; versionGroupType = wrapper.xcdatamodel; }; /* End XCVersionGroup section */
5
0
741
Sep ’24