Build, test, and submit your app using Xcode, Apple's integrated development environment.

Xcode Documentation

Post

Replies

Boosts

Views

Activity

Impact of Disable Generate Debug Symbols
Hello there, i would like to ask a question related xcode build confinguration. So i have create a Common.framework that i used in other project, because of the .framework file is quite large then i want to generate Common.framework but with Generate Debug Symbols is NO, and the result Common.framework size is reduced The question is there any negative impact that will happen to my app that use Common.framework?
2
0
2.3k
Dec ’21
How to remove executable applications from TCC .
I have created a command line application with Xcode, the application acquires permissions to capture screen (for example) however then I would like to remove only it with the command tccutil reset All [bundler id] the problem is that my executable seems to have no bundler id and I don't know how to remove it. I have also modified the Product Bundle Identifier option in the Build Settings tab but this didn't work either.
9
0
2.0k
Dec ’21
Executable Not Found ,Xcode
Executable Not Found Domain: DVTMachOErrorDomain Code: 5 Recovery Suggestion: *** is not a valid path to an executable file. Please rebuild the project to ensure that all required executables are created. Check your project settings to ensure that a valid executable will be built. User Info: {     DVTErrorCreationDateKey = "2021-12-29 04:46:38 +0000"; } I don’t know what’s going on. Suddenly, my project can’t run. The above information is displayed. I have reinstalled Xcode and reinstalled the mac system, but it still doesn’t work. Can someone help me?
11
0
19k
Dec ’21
New Apple Developer Team not showing up in developer.apple
I have been working for a while now. Never encountered this issue. After accepting the invite from the organization. The organizations does not appear at developer apple account. But can see the organization at app store connect. Yes i have checked the account permissions. I have the admin role and developer role etc is checked everything is correct. This is not just me happening with my colleague as well.
16
8
17k
Jan ’22
Xcode Cloud Dependency Resolution - out-of-date resolved file
When I try to build my iOS app using Xcode Cloud, it encounters an error when trying to resolve packages: an out-of-date resolved file was detected at [path to package.resolved], which is not allowed when automatic dependency resolution is disabled; please make sure to update the file to reflect the changes in dependencies Looking at my package.resolved file, it all seems to be in order. What can I do to fix it?
9
3
4.9k
Jan ’22
Debugging Big Sur kernel on inter-based macbook from Monterey on m1
HI devs, help me please, i want to debug Big Sur kernel on inter-based macbook from Monterey on m1, i have installed KDK_11.6.4_20G417.kdk in Monterey system on m1 macmini, then launch lldb, have created target and got this message : WARNING! Python version 3 is not supported for xnu lldbmacros. (lldb) target create /Library/Developer/KDKs/KDK_11.6.4_20G417.kdk/System/Library/Kernels/kernel warning: 'kernel' contains a debug script. To run this script in this debug session:   command script import "/Library/Developer/KDKs/KDK_11.6.4_20G417.kdk/System/Library/Kernels/kernel.dSYM/Contents/Resources/Python/kernel.py" To run all discovered debug scripts in this session:   settings set target.load-script-from-symbol-file true Current executable set to '/Library/Developer/KDKs/KDK_11.6.4_20G417.kdk/System/Library/Kernels/kernel' (x86_64). (lldb) settings set target.load-script-from-symbol-file true ############################## WARNING! Python version 3 is not supported for xnu lldbmacros. Please restart your debugging session with the following workaround defaults write com.apple.dt.lldb DefaultPythonVersion 2 ############################## Loading kernel debugging from /Library/Developer/KDKs/KDK_11.6.4_20G417.kdk/System/Library/Kernels/kernel.dSYM/Contents/Resources/Python/kernel.py LLDB version lldb-1300.0.42.3 Swift version 5.5.2-dev settings set target.process.python-os-plugin-path "/Library/Developer/KDKs/KDK_11.6.4_20G417.kdk/System/Library/Kernels/kernel.dSYM/Contents/Resources/Python/lldbmacros/core/operating_system.py" settings set target.trap-handler-names hndl_allintrs hndl_alltraps trap_from_kernel hndl_double_fault hndl_machine_check _fleh_prefabt _ExceptionVectorsBase _ExceptionVectorsTable _fleh_undef _fleh_dataabt _fleh_irq _fleh_decirq _fleh_fiq_generic _fleh_dec command script import "/Library/Developer/KDKs/KDK_11.6.4_20G417.kdk/System/Library/Kernels/kernel.dSYM/Contents/Resources/Python/lldbmacros/xnu.py" error: module importing failed: Traceback (most recent call last):  File "<string>", line 1, in <module>  File "/Library/Developer/KDKs/KDK_11.6.4_20G417.kdk/System/Library/Kernels/kernel.dSYM/Contents/Resources/Python/lldbmacros/xnu.py", line 123   print "Execution interrupted by user"      ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Execution interrupted by user")? settings set target.process.optimization-warnings false How can i solve this problem? lldb linked with python 3, but kdk uses python 2, also command line tools version 12.5.1 which uses python 2 i can not install on monterey too.
4
0
2.3k
Feb ’22
EXC_BAD_ACCESS error (Unity for iOS)
Hi, I have an issue with an update I am trying to test on XCode simulator. I usually do all the work on my PC and build the game on my Mac. It is working in the Editor and on the Android version. I haven't changed much with this update but it just won't work this time. When the simulator starts, the screen stays black for a few seconds and this message pops up. Being a total noob with XCode, I have absolutely no idea what is happening except that something probably can't be accessed. Could anyone help out or give me a few pointers? That would be incredibly helpful. Here is the XCode screen when that happens Thanks a lot.
4
1
1.2k
Feb ’22
Option "Show device mask in screenshots and videos" in iOS simulator not working as expected
Hi, I've activated the option "Show device mask in screenshots and videos" in iOS Simulator's preferences. When I take a screenshot of the simulator, using the "Save Screen" button, the "preview" of the screenshot (the one that appears as a small image on MacOS, next to the simulator) shows the frame, but when I save the image, e.g. in the Desktop folder, the frame doesn't appear in the saved image. Am I missing something, or this feature has a bug?
3
0
2.9k
Mar ’22
Xcode Simulator is not showing changed text font size
Hello, I have a probelm with the Xcode Simulator not showing desired changes with text font at specific configuration. When the configuration of a UIButton text was set as below on the editor, althought the changes were viewable on storyboard, the simulator didn't look the same. Type:Custom Style: Plain Title:Attributed Is there a logical reason why this happens? Also, the documentation says "Plain" indicate the text is a plain String object whilst "Attributed" indicate the string has become a instance of NSAttributedString. How is it possible to set the style and the title different like Style: Plain/Title: Attributed and vise versa? Maybe this was the reason the simulator didn't work alright? Thank you in advance
1
0
841
Mar ’22
Xcode/GitHub integration broken
As of yesterday I cannot push/pull from GitHub using Xcode. I can still push/pull from command line. I get the error (in Xcode) ERROR: You're using an RSA key with SHA-1, which is no longer allowed. Please use a newer client or a different key type I am using MacOS 12.2.1 Xcode: 13.2.1
4
4
6.6k
Mar ’22
ld: symbol(s) not found for architecture arm64
Hi,all I'm writing a simple c program on my m1 MacBook with vscode ,but when I complied the project, error occurs: Undefined symbols for architecture arm64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) I installed Xcode and used vscose and my program is : #include <cstdio> int main() { char name[100];printf("please input your name:"); scanf("%s",name); printf("hello,%s",name); }
7
2
21k
Mar ’22
Why is mac OS Big Sur already no longer supported for running Xcode 13?
When Xcode 13 was released, it required macOS 11.3 Big Sur or greater. I am currently running mac OS 11.6 Big Sur and when I try to run Xcode 13 I see this: My question to Apple is, why would you initially require a version of mac OS and then remove support for it in the same major version of xcode? I have an older MBP and cannot install a newer version of mac OS than Big Sur. This feels like planned obsolescence designed solely to drive demand. It gives the appearance of Apple being greedy and sours the developer experience. I would like to know if there is any substantial reason for this or if it's purely based on driving sales of macbooks.
3
0
2k
Mar ’22
Unable to Boot the Simulator (Xcode 13.3)
My version of Xcode was recently updated to 13.3. Now, I can not launch any simulator. I get an "Unable to Boot the Simulator" error from any iOS 15.4 device. I have deleted all 15.4 devices, and am downloading 15.2 devices to test. Some other sources are reporting this, too, but I saw nothing on the Developer Forums so thought I'd open a question here. Hoping for speedy resolution so I don't have to use Android emulators :(. (I develop on Flutter, which is cross platform)
17
5
16k
Mar ’22
[MacOS] Is there a way to get or implement Virtual USB drive?
I would like to use(or emulate) a virtual USB drive which behaves as a physical USB drive. Using this, I could try to mount/unmount the Virtual USB and copy(or modify) required files and folders into that(similar to physical USB drive activity). Is there a way to get or implement this in MacOS(BigSur) system? Could anyone please confirm.  If yes, how this can be achieved.
1
2
1.9k
Mar ’22