Search results for

Xcode

92,301 results found

Post

Replies

Boosts

Views

Activity

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
Reply to iOS 15 crash at -collectionView:viewForSupplementaryElementOfKind:atIndexPath:
Update Turns out that my workaround did not work. I AM receiving an object, the crash is verified happening at the UIKit level and not in my code. The code runs in iOS 14 and below, and when supplementary cells for type .background(...) are removed, the code works fine. This only appears to be for cells of type .background(...) (this code: https://developer.apple.com/documentation/uikit/nscollectionlayoutdecorationitem/3199051-background) It is not viewForSupplementaryElementOfKind:atIndexPath: returning nil, it is an Objective-C layer returning nil per Xcode as this code works in iOS 14.x using Xcode 13.x
Topic: UI Frameworks SubTopic: UIKit Tags:
Nov ’21
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
367
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 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