Search results for

“Xcode”

93,874 results found

Post

Replies

Boosts

Views

Activity

Reply to How to use edit> convert to convert objective C code to swift
I don't think that menu does what you hope...The choices being:- current swift syntax - modern Obj-C syntax- Obj-C w/arcThere is no 'Obj-C to Swift' choice.Quoting from Apple's Swift blog 10.2016:Xcode 7 and OS X El CapitanOS X El Capitan requires Xcode 7, which includes Swift 2, native support for System Integrity Protection (SIP), app thinning, as well as the latest SDKs. When running Xcode 7 you may notice a number of syntactical changes need to be applied to your Swift 1.2 code. To help in your migration to Swift 2, Xcode 7 includes a helpful tool to re-write older Swift code for you. Just select the menu item Edit > Convert > To Latest Swift Syntax and Xcode will migrate your code to the latest Swift API and syntax.
Dec ’17
Reply to Xcode 9 beta 6 hang
I am also experiencing this problem, only when a second bar button is added to a tool bar and pushed to the extreme right of the storyboard, if I try to change this button to a 'System item' in this case 'Trash x-code freezes. If I add a third button I can change this to a trash button?
Sep ’17
ccache in xcode 16
I have a xcode project generated by unity 6 my mac: my x-code: It's a simple project but the building time lasted over 10 minutes and I found a page https://discussions.unity.com/t/optimizing-ios-and-macos-build-times-using-ccache/809570 I tried to run ccache in my mac and hope to accelerate the building. I installed ccache in my MAC by brew I made two script with +x mode I created a testc folder to verify the script and it did work. Then I opened the xcode and added CC and CXX to the “Build Settings” I triggered the building But it didn’t work, the building used the default compiler. I had repeated to ask AI about it and cleaned building cache many times, but the problem still exists. Even without any probing executing of the ccache-clang script ( I configured the log file position, so if it has been executed once, there will be some logs) Could someone help me check if there’s something wrong?
1
0
400
Mar ’25
Reply to Can't debug through Simulator
I tried removing the devices in the folder and re-starting X-Code but still no luck. I had to also go into Developer Tools and then remove and add back in the iPad Air device to the list of simulators. I even tried a full reboot and restart of XCode.Any other suggestions?
Oct ’15
Reply to Xcode asks to install Rosetta
Return worked. Probably needs rosetta to compile/test code destined for other platforms. Thats why I got my M1 Mac Mini. Time to get that idiots guide to mac for windows users who can write in visual bacic and C but not x code. So complete newbie to Mac but quick learner.
Dec ’20
Reply to How do you make your app work on older iOS versions
You can make your app work on 8 and 9, but it will take more work. You won't be able to submit the app from Xcode 7 until shortly before iOS 9 is released. You can install Xcode 6.4, target iOS 8, and submit to the store now. But, this almost certainly means you will have to make some code changes (especially if you used Swift) and do some testing on the 8.x simulators and some devices that still have 8.x on them. Or, if you want to wait to submit the app until it is possible to do so from Xcode 7, you can set your project's deployment target to iOS 8.x, and again, modify your code and test on iOS 8 simulators/devices. There are several ways to handle things that are different or missing in different iOS versions, such as the if #available statement (Swift), comparing NSFoundationVersionNumber, testing respondsToSelector, or testing the result of NSClassFromString().EDIT: Changed ... project to target iOS 8.x... to ... project's
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Reply to Xcode now hangs; SDKs are "status unavailable"
Last post ... I promise ... When I reinstalled Xcode 26.4 again after going through all of the above shenanigans, I chose to NOT install the 26.x line of simulators, nor the Predictive Code Completion Model. As before, Xcode downloaded and installed older simulators anyway, but left the 26.x options uninstalled with their Get buttons primed and ready. I closed down Xcode and did some other stuff. After an hour I launched Xcode to check on things, opened Settings and, lo and behold, the iOS 26.4 and watchOS 26.4 simulators were showing as installed under the Platform Support section of the Components. What is going on? It's as if Xcode is hallucinating.
4d
Reply to WatchConnectivity for Xcode 12 / watchOS 7 / iOS 14 beta broken
I have the same problem with WCSession.default.transferFile it works on already distributed apps also under iOS 14.x but when I compile with current Xcode Version 12.2 (12B45b) it doesn't work. Also the Apple sample code doesn't work. So I can not update apps with the current Xcode Version that is really bad and time consuming. Will this issue fixed once a time with the next Xcode release ? When I use a IOS 13.x simulator with watchOS 5.3 it works. But in reality on a current updated device it doesn't work Totals disappointed !!
Topic: App & System Services SubTopic: General Tags:
Dec ’20
Reply to Xcode 16 and iOS 18 project not compiling
I'm encountering an issue while trying to build my iOS app in Xcode for the simulator. Issue: Xcode Version: 15.x macOS Version: 14.x (Sonoma) Simulator: iPhone 16 Pro Error Message: Command ClangStatCache failed with a nonzero exit code Steps Taken: Cleaned build folder (Shift + Cmd + K) Deleted DerivedData (rm -rf ~/Library/Developer/Xcode/DerivedData) Updated Xcode and checked iOS SDK updates Disabled Clang Static Analyzer Cache None of these steps resolved the issue. Any help would be appreciated! Thanks in advance.
Mar ’25
Reply to library not found for -lpng, clang: error: linker command failed
i installed using homebrew to make the program on x code, but i faced the same linking issue there so i installed fltk 1.4 separately and tried to make the program using Make. I first tried to make my program using cmake and x code as described here : https://github.com/fltk/fltk/blob/master/README.macOS.md#build_cmake_make, but after completing all the steps up till building fltk, i couldn't figure out what to do with the CMakeLists.txt file or how to link my new project with fltk. After that i tried Homebrew and was able to successfully link my program with fltk but then this linking issue occured and i got stuck. Now, even with updating the code using the github page using you mentioned, i am getting the same issue. Can you tell me in which directory should i be in when i execute this command, if i installed fltk using Homebrew? What was the procedure you followed if you also did this exercise?
Jan ’23
Reply to Do all functions return tuples?
Jack,Is it really correct to say that Swift doesn't allow 1-element tuples?This code works without a problem in Xcode playgrounds:var x: (Int) = (5)var y: Int = 6y = xvar z: Int = xx = y + zIf you option-click on x in one of the lower lines of the playground, Xcode will gladly tell you that its type is (Int), not Int. Xcode seems to think that Int and (Int) are both valid types that can be used interchangeably.Perhaps a better question is this: Are there any named values in Swift that aren't tuples?
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Reply to How to use edit> convert to convert objective C code to swift
I don't think that menu does what you hope...The choices being:- current swift syntax - modern Obj-C syntax- Obj-C w/arcThere is no 'Obj-C to Swift' choice.Quoting from Apple's Swift blog 10.2016:Xcode 7 and OS X El CapitanOS X El Capitan requires Xcode 7, which includes Swift 2, native support for System Integrity Protection (SIP), app thinning, as well as the latest SDKs. When running Xcode 7 you may notice a number of syntactical changes need to be applied to your Swift 1.2 code. To help in your migration to Swift 2, Xcode 7 includes a helpful tool to re-write older Swift code for you. Just select the menu item Edit > Convert > To Latest Swift Syntax and Xcode will migrate your code to the latest Swift API and syntax.
Replies
Boosts
Views
Activity
Dec ’17
Reply to Xcode 9 beta 6 hang
I am also experiencing this problem, only when a second bar button is added to a tool bar and pushed to the extreme right of the storyboard, if I try to change this button to a 'System item' in this case 'Trash x-code freezes. If I add a third button I can change this to a trash button?
Replies
Boosts
Views
Activity
Sep ’17
Reply to Big Sur Xforce Keygen not opening
Hi all! I have followed all of the instruction, still no succes. When i run sudo upx -d command, it says 0 files unpacked and doesn't really help. I have tried it with different crack (x code) files. Any more ideas? Thank you in advance
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’21
how do you get xcode 32 bit for windows?
I have a lenovo pc with windows 10. Anyone know how to get x code on it -- 32 bit.
Replies
9
Boosts
0
Views
1.5k
Activity
Sep ’17
ccache in xcode 16
I have a xcode project generated by unity 6 my mac: my x-code: It's a simple project but the building time lasted over 10 minutes and I found a page https://discussions.unity.com/t/optimizing-ios-and-macos-build-times-using-ccache/809570 I tried to run ccache in my mac and hope to accelerate the building. I installed ccache in my MAC by brew I made two script with +x mode I created a testc folder to verify the script and it did work. Then I opened the xcode and added CC and CXX to the “Build Settings” I triggered the building But it didn’t work, the building used the default compiler. I had repeated to ask AI about it and cleaned building cache many times, but the problem still exists. Even without any probing executing of the ccache-clang script ( I configured the log file position, so if it has been executed once, there will be some logs) Could someone help me check if there’s something wrong?
Replies
1
Boosts
0
Views
400
Activity
Mar ’25
Reply to Can't debug through Simulator
I tried removing the devices in the folder and re-starting X-Code but still no luck. I had to also go into Developer Tools and then remove and add back in the iPad Air device to the list of simulators. I even tried a full reboot and restart of XCode.Any other suggestions?
Replies
Boosts
Views
Activity
Oct ’15
Reply to Xcode asks to install Rosetta
Return worked. Probably needs rosetta to compile/test code destined for other platforms. Thats why I got my M1 Mac Mini. Time to get that idiots guide to mac for windows users who can write in visual bacic and C but not x code. So complete newbie to Mac but quick learner.
Replies
Boosts
Views
Activity
Dec ’20
Reply to dyld: Symbol not found: ScrollView scrollDisabled
Just wanted to know this reproduces easily. Deployment Target 17.0 iOS Simulator 17.x - Crashes on Startup iOS Simulator 18.x - Doesn't crash The entire code is just ScrollView { // Anything } .scrollDisabled(true) // --> This causes the crash on 17.x, Xcode 16
Replies
Boosts
Views
Activity
Jun ’24
Reply to How do you make your app work on older iOS versions
You can make your app work on 8 and 9, but it will take more work. You won't be able to submit the app from Xcode 7 until shortly before iOS 9 is released. You can install Xcode 6.4, target iOS 8, and submit to the store now. But, this almost certainly means you will have to make some code changes (especially if you used Swift) and do some testing on the 8.x simulators and some devices that still have 8.x on them. Or, if you want to wait to submit the app until it is possible to do so from Xcode 7, you can set your project's deployment target to iOS 8.x, and again, modify your code and test on iOS 8 simulators/devices. There are several ways to handle things that are different or missing in different iOS versions, such as the if #available statement (Swift), comparing NSFoundationVersionNumber, testing respondsToSelector, or testing the result of NSClassFromString().EDIT: Changed ... project to target iOS 8.x... to ... project's
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’15
Reply to Invalid Executable - Binary Contains BitCode
The App Store doesn't accept code compiled in beta versions of Xcode or on beta version of OS X.If you want to submit, you would currently need to compile with Xcode 6.4 (which means Swift 1.2) and on OS X Yosemite 10.10.4 or earlier.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’15
Reply to Xcode now hangs; SDKs are "status unavailable"
Last post ... I promise ... When I reinstalled Xcode 26.4 again after going through all of the above shenanigans, I chose to NOT install the 26.x line of simulators, nor the Predictive Code Completion Model. As before, Xcode downloaded and installed older simulators anyway, but left the 26.x options uninstalled with their Get buttons primed and ready. I closed down Xcode and did some other stuff. After an hour I launched Xcode to check on things, opened Settings and, lo and behold, the iOS 26.4 and watchOS 26.4 simulators were showing as installed under the Platform Support section of the Components. What is going on? It's as if Xcode is hallucinating.
Replies
Boosts
Views
Activity
4d
Reply to WatchConnectivity for Xcode 12 / watchOS 7 / iOS 14 beta broken
I have the same problem with WCSession.default.transferFile it works on already distributed apps also under iOS 14.x but when I compile with current Xcode Version 12.2 (12B45b) it doesn't work. Also the Apple sample code doesn't work. So I can not update apps with the current Xcode Version that is really bad and time consuming. Will this issue fixed once a time with the next Xcode release ? When I use a IOS 13.x simulator with watchOS 5.3 it works. But in reality on a current updated device it doesn't work Totals disappointed !!
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’20
Reply to Xcode 16 and iOS 18 project not compiling
I'm encountering an issue while trying to build my iOS app in Xcode for the simulator. Issue: Xcode Version: 15.x macOS Version: 14.x (Sonoma) Simulator: iPhone 16 Pro Error Message: Command ClangStatCache failed with a nonzero exit code Steps Taken: Cleaned build folder (Shift + Cmd + K) Deleted DerivedData (rm -rf ~/Library/Developer/Xcode/DerivedData) Updated Xcode and checked iOS SDK updates Disabled Clang Static Analyzer Cache None of these steps resolved the issue. Any help would be appreciated! Thanks in advance.
Replies
Boosts
Views
Activity
Mar ’25
Reply to library not found for -lpng, clang: error: linker command failed
i installed using homebrew to make the program on x code, but i faced the same linking issue there so i installed fltk 1.4 separately and tried to make the program using Make. I first tried to make my program using cmake and x code as described here : https://github.com/fltk/fltk/blob/master/README.macOS.md#build_cmake_make, but after completing all the steps up till building fltk, i couldn't figure out what to do with the CMakeLists.txt file or how to link my new project with fltk. After that i tried Homebrew and was able to successfully link my program with fltk but then this linking issue occured and i got stuck. Now, even with updating the code using the github page using you mentioned, i am getting the same issue. Can you tell me in which directory should i be in when i execute this command, if i installed fltk using Homebrew? What was the procedure you followed if you also did this exercise?
Replies
Boosts
Views
Activity
Jan ’23
Reply to Do all functions return tuples?
Jack,Is it really correct to say that Swift doesn't allow 1-element tuples?This code works without a problem in Xcode playgrounds:var x: (Int) = (5)var y: Int = 6y = xvar z: Int = xx = y + zIf you option-click on x in one of the lower lines of the playground, Xcode will gladly tell you that its type is (Int), not Int. Xcode seems to think that Int and (Int) are both valid types that can be used interchangeably.Perhaps a better question is this: Are there any named values in Swift that aren't tuples?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’15