1,431 questions
0
votes
0
answers
49
views
iOS archive failed in GitLab CI/CD: “SWIFT_OPTIMIZATION_LEVEL=-O expected -Onone (React-jsitracing)”
I’m trying to build and archive my React Native iOS app using GitLab CI/CD, but the build fails during the archive step. Below is the error message I get:
note: Disabling previews because ...
0
votes
1
answer
47
views
how do we do xcodebuild -only-testing for testing framework
Hi I have 2 different test case in my iOS project
import XCTest
@testable import MyApp
final class MyAppXCTests: XCTestCase {
func testXCToggleOne() throws {
XCTAssertTrue(true)
}
}
...
0
votes
1
answer
1k
views
Flutter iOS: “iOS 18.5 is not installed” / “Unable to find a destination matching …” when running on a physical device (Xcode/Android Studio)
I’m trying to run a Flutter app on my physical iPhone from Android Studio/VS Code. The build fails with:
Could not build the precompiled application for the device.
Uncategorized (Xcode): Unable to ...
0
votes
2
answers
105
views
Xcode 16.2: Unsigned IPA uses older SDK version (17.5 instead of 18.2)
I'm facing an issue with Xcode 16.2 when building iOS apps for different clients.
I have a white-label app, and I build:
A signed IPA for some clients
An unsigned IPA for others
For the signed app, ...
0
votes
0
answers
85
views
Downloading SwiftPM binary dependencies behind corporate proxy using xcodebuild
When trying to run the following commands:
XCODE_OPTIONS="-scmProvider system -resolvePackageDependencies -disablePackageRepositoryCache"
xcodebuild clean $XCODE_OPTIONS -workspace $...
1
vote
0
answers
61
views
Caching SPM dependencies breaks validation / checksums (Tart VM, GitLab)
Background
I'm setting up iOS GitLab pipelines to run inside virtual machines using Tart. To improve build times, I want to cache Swift Package Manager (SPM) dependencies between jobs.
Current Setup
...
0
votes
0
answers
43
views
Github Actions/Xcodebuild: Bad Apple Distribution signing certificate used
When I run xcodebuild -workspace App.xcworkspace -scheme Default -configuration AdHocDistribution -archivePath ./build/App.xcarchive -destination "generic/platform=iOS" clean archive with ...
0
votes
1
answer
218
views
What is the correct way to create an iOS ipa on remote machine?
I've been struggling for about a week trying to write a Github action that builds and uploads an iOS ipa to App Store Connect.
I seem to be running into issues when trying create the ipa file itself. ...
1
vote
0
answers
62
views
How to update Swift Package Manager subdependencies from terminal in Xcode project?
I have an Xcode project using Swift Package Manager with several dependencies. Some packages have subdependencies that aren't directly specified in my project settings, but I need to update them to ...
0
votes
1
answer
425
views
Xcode 16 iOS 18 compilation error with flutter integrated after updating xcode 15.4 to xcode 16
Xcode build done. 18.5s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/...
1
vote
2
answers
249
views
Xcode custom build rule, file dependencies in order
I have added my own build rule to Xcode, to compile a custom type of file. Let's call it .foo.
I need to be able to specify that file A should be compiled before file B (since B depends on A). I have ...
0
votes
1
answer
63
views
Xcode can't generate archive correctly
In my case, after updating the libraries in Flutter's pubscpec.yaml, I could no longer generate Product > Archive for distribution in Xcode. The archive was generated as other items instead of iOS ...
1
vote
0
answers
176
views
fatal error: module 'Foundation' is needed but has not been provided, and implicit use of module files is disabled
When I use XCode 16 for building, I get the following error. The xcodebuild command I used triggered it. What is the problem?
In file included from /var/folders/9b/70l7vl6j3577k0mstkzcv0n80000gp/T/...
0
votes
1
answer
252
views
No .ipa file after running xcodebuild -exportArchive using XCode 16.2
I try to generate an .ipa file from the command line using XCode 16.2.
I have successfully created a .xcarchive file, yet when I execute the following command:
xcodebuild \
-exportArchive \
-...
1
vote
0
answers
233
views
Running Swift PeripheryApp in CI and hitting xcode build error
I'm trying to use PeripheryApp in my CI and I'm running into an issue where it fails out by using too much diskspace. I've seen this issue when I run it locally when my project has generated fully (i'...
3
votes
1
answer
758
views
Xcode 16.1: Command PhaseScriptExecution failed with a nonzero exit code
I have a flutter app that was uploaded back on 2022 and last month I had to update to Xcode 16.1 and macOS 15.2 same flutter version 3.3.2 since Apple does not want me to upload the app with my ...
0
votes
0
answers
286
views
xcodebuild and swift package manager, can't resolve package graphs
TLDR: how can I get Resolve Package Graphs to succeed when running Xcode 16 under Fastlane? Is there some option to scan I am missing or some setup/config I need to do prior to running scan?
My ...
1
vote
1
answer
631
views
How to reliably import .mlpackage machine learning model into Xcode
I have a recurring problem using my ML model in Xcode. The model is created using tensorflow in .mlpackage format. I have dragged the .mlpackage directory from Finder into Xcode, removed it from &...
1
vote
0
answers
269
views
Cannot Build React Native Project After Updating Mac OS (15.2) and xCode (16.2)
I have been unsuccessful trying to get my project to build all week on xCode.
It was running fine on the previous OS with xCode 15, but now - I am having all sorts of build issues (xCode (16.2). I ...
0
votes
0
answers
36
views
Unable to add custom keychain into the list using Jenkins freestyle project
I am trying to add a custom keychain (ios-build.keychain-db) into the list of keychains, but after adding I don't see it (with command: security list-keychains). I also tried to set it default ...
1
vote
0
answers
52
views
How to correctly sign Mac app with xcodebuild
I'm trying to build my Mac app for TestFlight using xcodebuild but I keep getting errors about the provisioning profile not containing the Mac Developer Installer Certificate. The release ...
0
votes
0
answers
56
views
Unable to execute a single test case using xcodebuild -only-testing option
We have a test suite which has nearly 1000 test cases. We need to run the test suite on a machine that is different than the build machine. We resigned the app and the test ipas, installed it on the ...
1
vote
2
answers
660
views
Xcodebuild: error: Timed out waiting for all destinations matching the provided destination specifier to become available
I am getting this error while running flutter app in iPhone 15 Pro Max
Whole error log:
Running pod install...
Running Xcode build...
Xcode build done.
...
0
votes
1
answer
259
views
Azure pipeline CI: No profiles for 'com.my.app' were found
I am trying to use azure pipeline for CI/CD, but can't build my app. I set automatic code signing in Xcode. Also I uploaded all needed secure files both certificate and provisioning profiles.
pool: ...
0
votes
1
answer
137
views
xcodebuild producing iPhoneOS build despite Catalyst destination
I'm developing a multi-platform SDK in Xcode following the instructions from Creating a multiplatform binary framework bundle. I've done this several times in the past the only issue being that I ...
0
votes
1
answer
34
views
Unable to generate doc for test projects using realm/Jazzy
I've been trying to generate documentation for our unit and ui test of a project that has cocoapods. I have created a simple project that is demonstrating my error (pasted below). The link to the ...
2
votes
0
answers
286
views
Enforce Xcode to update String Catalog on command line?
Xcode's String Catalog seems to be a nice solution compared to the old approach. However, in larger projects it can happen that the Localizable.xcstrings file is updated too late, making developers ...
1
vote
0
answers
100
views
Fastlane build failing with error: Build input file cannot be found
The error messages have the following form:
error: Build input file cannot be found: '{path}'. Did you forget to
declare this file as an output of a script phase or custom build rule
which produces ...
1
vote
1
answer
823
views
Sign with xcode build on CI/Github actions with fastlane results in signing error regarding SPM frameworks
I am manually on GitHub action trying to sign my iOS app.
I am using fastlane (partially) to help me. I do not want to use match as I intend to reuse the script between customers so I cannot use a ...
4
votes
2
answers
182k
views
Github Actions : Provisioning profile "foo" doesn't include the currently selected device "Mac-1719908638417.local"
I've configured an CI/CD environment using Github Actions to build and deploy Apps automatically.
But since Github has updated the runner, I get the error Provisioning profile "foo" doesn't ...
0
votes
1
answer
813
views
How to archive iOS app and export unsigned IPA with Xcode 15.4?
I'm trying to export unsigned IPA of an iOS application using Xcode 15.4. This is a bash script I'm using to do so:
xcodebuild clean archive \
-workspace DemoApp.xcworkspace \
-scheme DemoApp \
-...
1
vote
1
answer
234
views
Building a Swift XCFramework compatible with Objective-c
I'm building a Swift Package distributed in the form of an XCFramework.
Importing the resulting binary inside a Swift application works just fine, but trying to import it inside of an Objective-c ...
0
votes
1
answer
358
views
Where is the file downloaded by the `xcodebuild -downloadPlatform iOS`?
I executed xcodebuild -downloadPlatform iOS for download ios17.2 simulator.
The download is complete, but the installation process failed due to lack of space and nearly 7 gigs of hard drive space was ...
1
vote
1
answer
805
views
Fastlane setup_ci for GitHub
Please note: this issue has been reported many times in other questions, but in each of those cases you will see that the solution was to clear the cached Derived Data. I have already done this, and ...
0
votes
2
answers
268
views
xcodebuild command failing after upgrading to Xcode 15
We have a server with mac and Xcode which generates apps for IOS signing them with release provisioning profile and sign identities. It does by command line
It worked perfectly until we upgraded from ...
1
vote
1
answer
220
views
How to set GitHub Actions up to fail if Xcode tests are failing?
I need to build an Xcode project with pods, run tests, and if tests are failing => fail workflow. If tests are passed => upload the report to Codecov.
Currently, it doesn't matter if tests are ...
-1
votes
1
answer
289
views
xcodebuild fails to copy SPM bundles
I'm trying to make a build of my app using xcodebuild. However, it is failing in this environment and I don't understand why…
Here's the command I'm running:
xcodebuild \
build \
-scheme "My ...
1
vote
0
answers
395
views
Xcode 15.3, use xcodebuild to build app, error: "TARGET" requires a provisioning profile xxxxx
Everything is ok util upgrade to xcode15.3 and macos14.0.
When I use xcodebuild to build my app, some error occured:
error: "ShopAssistant" requires a provisioning profile with the ...
2
votes
1
answer
620
views
failed compiling with xcodebuild, swift package manager, iOS 17 and swift-confidential
My app compiles, validates and stores correctly from Xcode IDE using the library swift-confidential (a tool for obfuscating Swift literals).
But I cannot use Xcode on my osx server so I need to use ...
0
votes
1
answer
2k
views
iOS App Certificates, Provisioning Profiles, Targets and Codesigning explained
I am new to iOS app development and am having a difficult time understanding some of the relationships between Certificates, Distributions, Provisioning Profiles, Targets and the entire codesigning ...
8
votes
0
answers
762
views
XCBCore MacroEvaluationProgram.executeInContext crashed
Context
We have a very large codebase in our company 600k+ Lines of Code. The setup is a XcodeProj using Swift Package Manager as the only and main package management tool. We have started a long ...
1
vote
1
answer
564
views
xcodebuild is stuck indefinitely when few tests are failed
I am using XCTest to run UI tests on iPhone.
Whenever few tests are failed, the xcodebuild command is stuck indefinitely without yielding any results. I have to terminate the build manually. I have ...
-1
votes
1
answer
1k
views
Xcode 15 command line simulator build ignores simulator destination
This command to build for simulator works just fine with Xcode 14:
xcodebuild \
-project MyProject.xcodeproj \
-scheme App \
-destination "platform=iOS Simulator,name=iPhone 14" \...
5
votes
0
answers
252
views
xcodebuild destination with id logs warning with duplicates
I run xcode tests on a simulated device with this script line:
xcodebuild test \
-workspace MyWorkspace.xcworkspace \
-scheme My-Scheme \
-destination 'id=12345678-ASDF-ASDF-ASDF-...
1
vote
0
answers
102
views
Xcode Archive Release Takes Around 2 hours
I am using Xcode 15.2 to archive my iOS app, it takes around 2 hours to complete the archive, during the first 15 minutes Xcode will be using huge CPU usage, then for the rest of the time until the ...
4
votes
0
answers
2k
views
Xcode problem with resolving some spm package dependencies fetching stuck
I have very strange problem with resolving packages in Xcode IDE. Some of the dependencies stuck at Resolve Packages phase when fetching.
What I've tried and what I've noticed:
force close xCode (...
0
votes
0
answers
87
views
Programmatically remove all local Swift Packages before archiving
I have modularized much of my code base into Swift Packages, and use local packages as described by Apple to do most of my work. I would like to automatically remove these local packages as step ...
0
votes
1
answer
446
views
AWS Device Farm XCTest UI generated .xctestrun file is not valid
Device Farm generates a .xctestrun file and the location is stored at $DEVICEFARM_XCUITESTRUN_FILE. However, my test fails everytime
xcodebuild: error: Failed to build workspace temporary with scheme ...
1
vote
0
answers
150
views
How to pin target iOS SDK version when building with xcodebuild
I build an IPA using xcodebuild on CI (actually, I have a Flutter app and build it for iOS with flutter build ipa but it calls xcodebuild under the hood). Every now and than, for example right now, a ...
1
vote
1
answer
438
views
xcodebuild command does not generate a Product
I am on mac Sonoma 14.1.1, using xcode v.15.0
I am trying to build a bundle with xcode through a bash script, with a command that looks something like this:
sudo xcodebuild build -project $(dirname &...