Hi, moving from Xcode 16.1 to 16.2, the code coverage percentage is still 0.
The project is quite old, but it worked with 16.1.
What I tried:
converted the old tests to test plans in the settings, including all the various targets (for internal functionality contained in frameworks, each framework has its own test target).
added the various code coverage flags to YES.
added test hosts to the main targets.
played with various settings found in dozens of guides.
But nothing. The main app shows 0% coverage, even though the internal frameworks have their own coverage and the files within the main app are tested.
On Xcode 16.1, the % appears, but from 16.2 onwards, it doesn't.
Also tried with Xcode 26.
Any ideas?
Thanks
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi,
I have an issue with App submission.
My flow is:
show third party cookie consent banner (is an external SDK)
show ATT Apple with this message
"Allowing tracking will enable more personalized ads for you."
Apple says this:
You collect data to track after the user selects "Ask App Not to Track" on the App Tracking Transparency permission request.
Specifically, we noticed the app accesses web content you own and collects cookies for tracking after the user asked you not to track them.
Next Steps
To resolve this issue, please revise the app so that you do not collect data for tracking purposes if the user does not give permission for tracking.
Alternatively, if you do not collect cookies for tracking purposes, revise the cookie prompts that appear in the app to clarify you do not track users.
in the rejection they put the ATT alert and the third party banner as the screen
Do you have any input on this as Apple never says things clearly about what the problem is.
Thank you
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Tracking Transparency
App Review
Privacy
Hi all,
I got this error from test flight
/System/Library/Frameworks/_PassKit_SwiftUI.framework/_PassKit_SwiftUI _$s16_PassKit_SwiftUI03AddA14ToWalletButtonVAA0cD09EmptyViewVRszrlE6actionACyAFGyyc_tcfC _$s16_PassKit_SwiftUI03AddA14ToWalletButtonVMn _$s16_PassKit_SwiftUI03AddA14ToWalletButtonVyxG0cD04ViewAAMc _$s16_PassKit_SwiftUI03AddA19ToWalletButtonStyleV5blackACvgZ _$s16_PassKit_SwiftUI03AddA19ToWalletButtonStyleVMa _$s7SwiftUI4ViewP09_PassKit_aB0E03addD19ToWalletButtonStyleyQrAD03AdddghiJ0VF _$s7SwiftUI4ViewP09_PassKit_aB0E03addD19ToWalletButtonStyleyQrAD03AdddghiJ0VFQOMQ
I removed support for MacOS and Vision Pro
I tried to add Passkit and SwiftUI . framework
But I got other error when I try to upload to test flight
Xcode 15.3
Do you have some suggestion?
thanks
Hi everyone
Premise: it works with Xcode 14.2
I have a problem with fastlane and slather, it gives me an error that it cannot find the "code coverage folder"
Here are some details
Fastlane file
slather(
build_directory: "./DerivedData",
scheme: "MyApp",
workspace: "MyApp.xcworkspace",
proj: "./MyApp.xcodeproj",
output_directory: "./DerivedData/testResult",
cobertura_xml: true,
verbose: true
)
Error:
Exit status of command 'slather coverage --cobertura-xml --build-directory ./DerivedData --output-directory ./DerivedData/test-output/slatherOutput --ignore Pods/\* --ignore fastlane/\* --ignore build/\* --ignore DerivedData/\* --verbose --scheme ProjectName --workspace ProjectName.xcworkspace ./ProjectName.xcodeproj' was 1 instead of 0.
Slathering...
/usr/local/lib/ruby/gems/3.0.0/gems/slather-2.7.4/lib/slather/project.rb:239:in `profdata_coverage_dir': No coverage directory found. (StandardError)
from /usr/local/lib/ruby/gems/3.0.0/gems/slather-2.7.4/lib/slather/project.rb:517:in `find_binary_files'
from /usr/local/lib/ruby/gems/3.0.0/gems/slather-2.7.4/lib/slather/project.rb:336:in `configure'
from /usr/local/lib/ruby/gems/3.0.0/gems/slather-2.7.4/lib/slather/command/coverage_command.rb:59:in `execute'
from /usr/local/lib/ruby/gems/3.0.0/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run'
from /usr/local/lib/ruby/gems/3.0.0/gems/clamp-1.3.2/lib/clamp/subcommand/execution.rb:18:in `execute'
from /usr/local/lib/ruby/gems/3.0.0/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run'
from /usr/local/lib/ruby/gems/3.0.0/gems/clamp-1.3.2/lib/clamp/command.rb:140:in `run'
from /usr/local/lib/ruby/gems/3.0.0/gems/slather-2.7.4/bin/slather:17:in `<top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/bin/slather:25:in `load'
from /usr/local/lib/ruby/gems/3.0.0/bin/slather:25:in `<main>'
No coverage directory found.
Are you sure your project is generating coverage? Make sure you enable code coverage in the Test section of your Xcode scheme.
Did you specify your Xcode scheme? (--scheme or 'scheme' in .slather.yml)
If you're using a workspace, did you specify it? (--workspace or 'workspace' in .slather.yml)
If you use a different Xcode configuration, did you specify it? (--configuration or 'configuration' in .slather.yml)
Any ideas in order to fix this issue?
Thanks
Hi all,
I have this issue with new Xcode beta 2 (also beta 1), inside warning list I have hundreds of warning due to "// WARNING:" markdown inside the file like this
AES.h
namefile.h
etc
I think all related to the pod, but inside podfile I already have inhibit_all_warnings!
Any suggestions? thanks? I wanna shutdown this kind of warnings
Hi guys,
I have tried everything, including integrating the App delegate in SwiftUI, tested all the solutions on the web. of everything
InfoPlist does not exist in this type of app and there is no checkbox to tick in the Target project.
Could it be that Apple has blocked any possibility of blocking Swift Playground App a landscape?
do you have any ideas?
a thousand thanks!!!
hi, how can I hide the status bar in the whole Swift playground app (since there is no plist file)?
if I add .statusBar (hidden: true) the safe area under the Home button is raised
Also always for the plist file how can I force that the app is only in landscape always in the Swift Playground App?
Hi I have a problem with these identifiers
I applied it like this to the tabbar
self.tabBar.accessibilityIdentifier = @"MyID";
and works!!!
But for tabBarItem I've tried everything but it doesn't work it's always empty
Called in viewDidLoad of my TabbarController
self.tabBarItem.isAccessibilityElement = YES;
[self.tabBarItem setIsAccessibilityElement:YES];
self.tabBarItem.accessibilityIdentifier = @"MyID";
self.tabBar.items[0].accessibilityIdentifier = @"MyID";
Nothing works. I always get empty
Do you have any idea on how to implement the identifier I want for each single element of the tabbar?
Thanks
By creating a Swift Playground App project with XCode 13.3 as requested by Apple for the Student challenge.
It gives me this error when I try to open with Swift playground. (I have the latest version available) (on Mac)
Do you have any ideas?
Thanks
Hi
Where can I find and download the new Playground Book Template for XCode 13.3?
thank you