12 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
38
views
BuildPhases Order in Unity PostProcessBuild
I’m using Unity 2022.3 LTS with Xcode 16.3.
My PostProcessBuild script adds a Notification Service Extension like this:
var extGuid = proj.AddAppExtension(
mainGuid,
"NotificationService&...
0
votes
1
answer
209
views
Xcode build phase run script doesn't have access to node
I have a custom "Run Script" step in my Xcode projects Build Phases which does the following:
#!/bin/zsh
set -e
# move to the node project directory
cd ~/my-node-project
# build js ...
4
votes
0
answers
721
views
xcodegen framework target that generate it's own sources doesn't generate umbrella header
I'm using xcodegen to create project. I just wanted to create a framework target and app target... Like this...
targets:
MySecrets:
platform: iOS
type: framework
settings:
...
1
vote
2
answers
923
views
Detect if build is triggered from SwiftUI Preview in Build Phases - Run Script
Is there any way to detect if the build was triggered by the SwiftUI Preview from inside Build Phases - Run Script?
I'm using swiftlint with --fix --format, the problem is when I have the Preview open ...
0
votes
1
answer
134
views
How does CocoaPods add files to a target when they're actually not added as a member of a target?
I'm working with a CocoaPod private library.
We have mock files that are being used for our Swift Previews.
What's surprising is that these mock files aren't added as a member to the pod's target. ...
3
votes
1
answer
1k
views
Using sysroot for 'iPhoneSimulator' but targeting 'MacOSX'
I am trying to add a new build phase and run a .swift build script to process files.
When I try:
v Run Script
Shell /usr/bin/swift
# Type a script or drag a script file from your workspace to insert ...
1
vote
0
answers
44
views
How to distinguish between a SwiftUI Preview build and Cmd+B build? [duplicate]
I need to run a Build phase only if an actual build (Cmd+B or Play-button) and not if the SwiftUI Previewer builds the app.
I did not find any differences in both types of build.
1
vote
0
answers
83
views
How can I add dynamic referances in compile resources?
I have a Python script that generates various ".swift" files. I also have "Build-Phases" such that resources.py generates different ".swift" files in the same folder
...
9
votes
4
answers
1k
views
Print Xcode build phase output when run via fastlane
I have a custom Run Script phase in my Xcode project that outputs some information:
When I build the app via Xcode, I see the output of the script (Planning build, Building for debugging etc.):
...
1
vote
0
answers
58
views
How can I solve the error in Buildphares Xcode in Flutter?
I'm trying to implement my home widget in flutter with this plugin:
home_widget
As it is written in the iOS Added Guide in my XCode app this Build Phases:
generatedPath="$SRCROOT/Flutter/...
22
votes
2
answers
20k
views
How does Xcode find implicit target dependencies?
Xcode finds dependencies automatically sometimes. I think is is ok when I am the one who is defining the relationships and when I get lazy ...
But more than often I find myself facing an existent (...
3
votes
1
answer
908
views
How does the target know which headers it should include?
I do not understand how Xcode knows which headers should be included into which target? For example if I add a new File to my Xcode Project it adds the .m File to the compile sources of the selected ...