Search results for

xcode github

92,023 results found

Post

Replies

Boosts

Views

Activity

Reply to M_PI unresolved?? (iOS-only)
I can confirm this code works without error using Xcode 7.3.1 (7D1014), sam as yours, but under OS X 10.11.5. I'm not using the beta, so it seems they maybe did change something there. I assume you have tried the usual stuff since upgrading -- delete Derived Data folder, run the Option-Product>Clean Build Folder command, reboot? Or, it may be a phantom error caused in some surrounding code. I sometimes get these especially if I have mismatched braces or parentheses somewhere.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’16
Reply to Weird SIGTRAP during tableView scroll
When attempting to interpret crash reports, it can be helpful to remember they simply point to where the error occured, not the root cause.In your example, SIGTRAP is not the error, it is the exception. It doesn't show the origin of the crash. You might need to set break points, walking thru the UI/code so see if you can better id root cause related code block(s).In the mean time, does your app only support iOS 13.x? Which version Xcode are you using?
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’19
Getting crash when using notarytool on Github hosted osx build agents
When I run notarytool submit in my github workflow, I get what appears to be some kind of segmentation fault. Here's a direct link to the exception output: https://github.com/recyclarr/recyclarr/actions/runs/6594346352/job/17918152266#step:6:43 My project is open source, so you can also view the shell script I use in the workflow itself: https://github.com/recyclarr/recyclarr/blob/update-notary-tool/ci/notarize.sh The script above contains this: #!/usr/bin/env bash set -xe user=$1 pass=$2 teamId=$3 archivePath=$4 function submit() { xcrun notarytool submit --wait --apple-id $user --password $pass --team-id $teamId recyclarr.zip | awk '/id: / { print $2;exit; }' } function log() { xcrun notarytool log --apple-id $user --password $pass --team-id $teamId $1 } tar -cvf recyclarr.tar $archivePath zip recyclarr.zip recyclarr.tar submissionId=$(submit) rm recyclarr.zip recyclarr.tar if [[ -z $submissionId ]]; then exit 1 fi echo Submission ID: $submissionId until log $submissionId do sleep 2 done T
1
0
683
Oct ’23
Reply to Swift - Insert [AnyObject] into [NSMutableDictionnary]
This code: dataArray = [[jobs: ctlelems[x], unload: 0]];is replacing the whole content of dataArray with the single element array. It does not work as Insert.To append an element to Array: dataArray += [[jobs: ctlelems[x], unload: 0]]or dataArray.append([jobs: ctlelems[x], unload: 0])Found nil is another problem. You use too much unwrapping operators (!), without checking the optional value is nil or not.Put nil checking code before using !.
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Reply to Decode h.264?
As far as playing RTSP video streams, a recent search turns up at least one github project ffmpeg avplayer for iOS tvOS claiming that the Apple frameworks do the hard work in the recent iOS versions. (Link not included to avoid moderation. The quoted text is the title of the github project.)Have you seen that project?
Topic: Media Technologies SubTopic: Audio Tags:
Jan ’17
Reply to XCode Cloud with Azure Devops-hosted Git?
So for what it's worth, I was never able to make this work. My particular app wasn't very big, so I created a private repo on Github as a second origin to push to, and just sync it when I want to do a build. It's clumsy (and wouldn't work if you can't use Github for whatever reason), but it got me by. Hopefully Apple will eventually add generic Git support.
Jul ’24
Reply to Decodable and CGPoint
It depends a bit on the scale of the problem.One solution would be just to write the manual decoding for types like Circle that contain a CGPoint. The synthesized code is almost trivial to re-create manually, so it's just a question of source code size.Or, you could try to finagle the types like Circle like this:struct MyPointStruct: Decodable { let x: CGFloat let y: CGFloat } struct Circle: Decodable { private var _center: MyPointStruct var center: CGPoint { get { return CGPoint (x: _center.x, y: _center.y) } set { _center = MyPointStruct (x: newValue.x, y: newValue.y) } } }Or perhaps slightly more cleanly, if you have lot of point-containing structs:struct MyPointStruct: Decodable { var x: CGFloat var y: CGFloat var point: CGPoint { get { return CGPoint (x: x, y: y) } set { x = newValue.x; y = newValue.y } } } struct Circle: Decodable { private var _center: MyPointStruct var center: CGPoint { get { return _center.point } set {
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’17