When installing R packages like xgboost, data.table, farver, or other packages that compile from source on Apple Silicon Macs, you may encounter errors like:
error: invalid value 'gnu23' in '-std=gnu23'
Or C++ symbol linking errors like:
When installing R packages like xgboost, data.table, farver, or other packages that compile from source on Apple Silicon Macs, you may encounter errors like:
error: invalid value 'gnu23' in '-std=gnu23'
Or C++ symbol linking errors like:
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>UnifiedBar</key> | |
| <dict> | |
| <key>DisclosureRequired</key> | |
| <string>ace440ac-b4f6-4b43-aade-02bba1589aef</string> | |
| <key>Enabled</key> | |
| <false/> |
Author: Chris Lattner
| # The trick is to link the DeviceSupport folder from the beta to the stable version. | |
| # sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :) | |
| # Support iOS 15 devices (Xcode 13.0) with Xcode 12.5: | |
| sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.0 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport | |
| # Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions | |
| # (A similar approach works for older versions too, just change the version number after DeviceSupport) |
| // change this to a recognizeable piece of your audio output | |
| // e.g. setAudioOutput("AirPlay"); or setAudioOutput("VoilaDevice"); | |
| // returns true on success / false on beef | |
| // as always, all thanks to StackOverflow for the amazing | |
| // enumerate devices script: | |
| // http://stackoverflow.com/questions/1983984/how-to-get-audio-device-uid-to-pass-into-nssounds-setplaybackdeviceidentifier | |
| // Note: if you change "kAudioDevicePropertyScopeOutput" to "kAudioObjectPropertyScopeGlobal" in line 62, | |
| // you can set the output for your whole system... |
| // | |
| // TrimVideo.swift | |
| // VideoLab | |
| // | |
| // Created by Adam Jensen on 3/28/15. | |
| // Updated for Swift 5 (tested with Xcode 10.3) on 7/30/19. | |
| // MIT license | |
| // | |
| import AVFoundation |