Hi,
I need to pass the launch arguments through xcodebuild command. Is there a way to do it?
I know we can edit scheme and add launch argument but it needs to be added to through command line.
P.S: I'm using azure devops @Xcode5 to build and sign the .ipa
xcodebuild -sdk iphoneos -configuration Debug -workspace my.xcworkspace -scheme myScheme clean CODE_SIGNING_ALLOWED=NO -launchArgument "MyLaunchArguments"
Dive into the vast array of tools, services, and support available to developers.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Simulators sometimes draw the screen with the wrong aspect ratio and appear distorted. I'm on macOS 14.7 and using Xcode 16.1, but Xcode 16 was also sometimes doing this. This is happening in both iPhone simulator and iPad simulators.
Is anyone else seeing this? It's not just the Home Screen, it happens in apps too.
I have a weird bug when testing on the iPad simulators and I can't tell if it is a bug in the simulator or in my app. All my iPads are broken, so I can't actually test on device right now.
We have a relatively big iOS-only project with around 80 build targets from swift packages (local features and external project dependencies) and Xcode 15.4 (originally, migrated to 16.0). Project compiles and runs great, but xcodebuild archive will fail 4 out of 5 tries with this:
ld: file cannot be open()ed, errno=2 path=/opt/builds/fLLyxmhG/0/myapp/Build/Intermediates.noindex/ArchiveIntermediates/myapp (Development Flow)/BuildProductsPath/Debug-iphonesimulator/Account.o in '/opt/builds/fLLyxmhG/0/myapp/Build/Intermediates.noindex/ArchiveIntermediates/myapp (Development Flow)/BuildProductsPath/Debug-iphonesimulator/Account.o'
Where Account.o is an end product of one of our feature packages linking to an .app itself.
This error is not tied to this concrete package/product (which should be compiling almost last relative to build graph) and could appear mid-build in between our service layer packages.
It seems (and is approved by Xcode timeline for .app archive log) that module dependency is compiled later than module itself and linker just cant find its dependency object files. The scheme is:
Module A (dependency itself)
Module B (needs module A)
And with build order expected (???) to be A (first) -> B we're getting the B -> A.
Error appears only when archiving for Debug configuration, archiving the same end-target with Release configuration results in stable passes 10 out of 10 tries. Setting identical parameters in Build Settings tab for both configurations of a target is not giving any effect.
Our current fix is choosing Manual order in scheme Build order setting. Everything works as expected, but i guess it's not optimal 🤧
Sadly can't provide test project, but anything else — welcome.
Why as an IDE, many developers want to use the functions are not available, such as code formatting, if the function is not available, why not even a plug-in center, I have been using IDEA for code development, with Xcode development, feel very inconvenient to use
Update Xcode 16.2 but i get error Assets Validation Failed upload to Appstore,
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
App Store
App Store Connect
Xcode
Organizer Window
Currently Im trying to save few files in it but on every run this folder is empty. I have the following script in ci_post_clone.sh
mkdir ${CI_DERIVED_DATA_PATH}
cd ${CI_DERIVED_DATA_PATH}
ls -als
touch test
return 1
My expectation is that on the second run it would show test file in DerivedData or fail at creating the directory, but the issue is that this file is not created.
does it need a successful build for this folder to be saved? in Xcode Cloud, in workflow environment I have unchecked Clean build Xcode Cloud will not restore derived data or caches for your builds, which may take significantly longer as a result.. One more question here would be what is meant by caches? are there other folders being saved?
Also a bit of context. Im trying to build a Kotlin Multiplatform project but it fails with
Showing All Issues
> Could not resolve all files for configuration ':composeApp:iosArm64CompileKlibraries'.
> Could not download lifecycle-viewmodel.klib (androidx.lifecycle:lifecycle-viewmodel-iosarm64:2.9.0-alpha03)
> Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-viewmodel-iosarm64/2.9.0-alpha03/lifecycle-viewmodel-iosarm64-2.9.0-alpha03.klib'.
> Could not GET 'https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-viewmodel-iosarm64/2.9.0-alpha03/lifecycle-viewmodel-iosarm64-2.9.0-alpha03.klib'.
> Got socket exception during request. It might be caused by SSL misconfiguration
> Connection reset by peer
my guess is that Xcode Cloud or Google servers probably has some limitation. So if I cache those libraries my project will hopefuly compile once again.
I am a new user of PyCharm, but have years of experience with MacOS, python and similar. My set up is MacBook Pro M1, 32GB ram, MacOS Sequoia 15.2, and PyCharm Pro latest.
Path to projects leads to an external SSD via usb-c. I have set up some projects, each using python 3.12 in a venv.
The projects work for a while then “lose” a module (module not found). I have gone through every troubleshooting method the built-in AI and web search have come up with.
The first module to disappear is docx2txt. I created a new project and it worked, for a couple of days then the error returned. The docx2txt module could not be found working within or outside of PyCharm. In site-packages there is no “docx2txt” folder, only an “info” folder containing WHEEL and its companions.
For the most recent disappearance, I noticed the package used distutils. I cloned the docx2txt project from GitHub and updated setup.py to use setup tools instead of distutils, and installed it. Python invoked from the command line can import it, but not from PyCharm. When I run the project from PyCharm, the interpreter cannot find dotenv.
I have lost days of work time at this point so I am a bit worried. Advice on what to look at and for would be great.
Topic:
Developer Tools & Services
SubTopic:
General
I have a project that imports SPM swift-navigation which in-turn imports SPM https://github.com/pointfreeco/swift-perception
I have a test target it builds and runs with no issues in XCode however if I run with xcodebuild i get the below error (I have done basics removed derived data etc.)
❌ error: Build input file cannot be found: '/Users/chris/mtp-iOS-retail-iPhone/build/Build/Products/Debug/PerceptionMacros'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it? (in target 'Perception' from project 'swift-perception')
Hi
I have problem with my enrolment for developer account. I make a request for enrolment 3 days ago and the status is still pending
Hi,
Help!!
So I was in Thailand for a number of years and developed an app over there and signed up as a developer over there. But now I'm in the USA indefinitely and I'm unable to change my payment method. How can I change it?
I called the USA support line twice and no one was able to help me. I tried the Thailand phone number and I'm unable to call from the USA.
Any suggestions?
Thanks!!
In Xcode Version 16.1
Create a new Project, choose Multiplatform, App
For testing system, choose XCTest and UI Tests
In the project, open the newly generated template Unit test file
Click either of the diamonds in the left margin (either to run the example test or the entire file)
Expected Result: Code compiles and then Runs the test/tests
Actual Result: Code compiles, but then never completes testing (the top status bar is stuck saying "Testing..." forever.)
Am I missing something?
Hello Apple Developer Community,
I am encountering an issue while trying to pay the $119.99 Apple Developer Program fee through the Apple Developer app. I have linked a prepaid card to my Apple ID, which works perfectly fine for other purchases and subscriptions, but I am unable to complete the payment for the developer fee.
Here are the details of the issue:
Payment Method: Prepaid card connected to my Apple ID.
Amount: $119.99 (Apple Developer Program fee).
Location: Cameroon.
Other Transactions: All other purchases and subscriptions using the same prepaid card have been processed successfully without any issues.
When I attempt to pay for the developer fee, the payment doesn’t go through, and I receive an error message (Payment Failed). I’ve verified that my card has sufficient funds and that the information is correctly entered in my Apple ID account settings.
Has anyone else faced a similar issue, particularly with prepaid cards or payments in Cameroon? Any advice or guidance on how to resolve this problem would be greatly appreciated.
Thanks in advance for your help!
I am helping my company to renew the Enterprise Account, this exercise had been running smoothly in previous year. However, we did submit the application almost 1 month in advance, however, no reply or status update received yet. We had raised several tickets in support but helpless, our account is going to expired on 29-Dec-2024, anyone can share what should we do?
Hello,
i have apple account with name droob app, i am trying to enroll to apple developer program, with my name, but when i submit the requested fields , i get this message :
Your enrollment in the Apple Developer Program could not be completed at this time.
what should i do to complete enrollment process
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Hi!
I'm trying to create a target application that depends on multiple targets that all use the same Swift package that has xcframework binaryTarget. Each component can be successfully assembled individually, but when I try to create a core application that depends on these components, I get an error message on Prepare build stage:
Multiple commands produce '/Users/<USER>/Library/Developer/Xcode/DerivedData/<PROJECT_ID>/Build/Products/Debug/Frameworks/<FW_NAME>.framework/Versions/A'
Target '<COMPONENT1>' has copy command from '/Users/<USER>/Library/Developer/Xcode/DerivedData/<PROJECT_ID>/SourcePackages/artifacts/.../<FW_NAME>/<FW_NAME>.xcframework/macos-arm64_x86_64/<FW_NAME>.framework' to '/Users/<USER>/Library/Developer/Xcode/DerivedData/<PROJECT_ID>/Build/Products/Debug/Frameworks/<FW_NAME>.framework'
Target '<COMPONENT2>' has copy command from '/Users/<USER>/Library/Developer/Xcode/DerivedData/<PROJECT_ID>/SourcePackages/artifacts/.../<FW_NAME>/<FW_NAME>.xcframework/macos-arm64_x86_64/<FW_NAME>.framework' to '/Users/<USER>/Library/Developer/Xcode/DerivedData/<PROJECT_ID>/Build/Products/Debug/Frameworks/<FW_NAME>.framework'
– where <FW_NAME> is a name of the xcframework which is the binaryTarget in the Swift package.
Could someone please explain to me if it is even possible to use xcframeworks packaged in Swift packages in such cases, and if so, how to do it correctly?
Hi I'm trying to setup external users to test my app. When I get to the screen attached its not letting me complete the setup because it says I have to only use numbers for the phone number. I have only used numbers, I've ensure I've done so but its not recognizing this. Has anyone else had this issue? Could you make suggestions as to how to fix the problem?
[Image Edited by Moderator to Remove Personal Information]
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Your enrollment could not be completed.
Your enrollment in the Apple Developer Program could not be completed at this time.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
When I built my app with xCode16.2, the app crashed at runtime.
When building, I got a warning "UIWebView' is deprecated: first deprecated in iOS 12.0 - No longer supported; please adopt WKWebView.", so I suspected the dynamic actor isolation check.
When building, I tried setting the "-disable-dynamic-actor-isolation" flag, but the app still crashed.
However, I think the flag is not set properly, so how should I set the "-disable-dynamic-actor-isolation" flag?
I tried setting it as follows. Is this the correct way to set it?
Swift Compiler - Custom Flags
Other Swift Flags
Debug
Any Architecuture | Any SDK -disable-dynamic-actor-isolation
Release
Any Architecuture | Any SDK -disable-dynamic-actor-isolation
Topic:
Developer Tools & Services
SubTopic:
Xcode
I’m trying to add my account to Xcode 16.1, which is running on a virtual machine with macOS Sequoia 15.1. I was able to successfully sign in to my account on the virtual machine itself.
I’m using a Mac Mini M2, but when I attempt to add my account in Xcode, I encounter the following error:
"There was a failure decoding response: (HTTP 401, 60 bytes) The data couldn’t be read because it isn’t in the correct format."
Topic:
Developer Tools & Services
SubTopic:
Xcode
In my AppleDeveloperAccount i'd like to connect to an app in xCode.
I'm trying to "Register a New Provisioning Profile" for "iOS App Development".
At the step "select Devices" i get stucked, because i do not have an IOS device. I only have a Mac.
Do i need a physical IOS device to develop and publish IOS applications?