╰─➤ brew install stress 127 ↵ Running `brew update --auto-update`... 装啥都会先自动 update,就很烦,因为太慢了,等半天。如何让 brew 安装软件之前不要 update? *** "图片.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250109/c15baf0d9a01113dd795a4b6a941d172.png) 按照 chatGPT 的建议,添加 "--no-update" 没用 ╰─➤ brew install --no-update stress Running `brew update --auto-update`...
最近一个月,使用 brew 一直更新不到内容 ╰─➤ brew upgrade Running `brew update --auto-update`... 上面的就是全部输出了,看起来是没有什么需要更新。但是 brew 更新一直很激进的 比如我现在的 python3.11 还是 4 版本,但是python 官方都已经发布 python3.11.5 了 按照 brew 的尿性,可能已经要给我更新 python3.11.5 了 ╭─ponponon@MBP13ARM ~/Desktop ╰─➤ where python3.11 /opt/homebrew/bin/python3.11 ╭─ponponon@MBP13ARM ~/Desktop ╰─➤ python3.11 --version Python 3.11.4 *** 我用的是中科大的镜像,是中科大的镜像不更新了吗? ─➤ brew config HOMEBREW_VERSION: 3.6.20 ORIGIN: https://mirrors.ustc.edu.cn/brew.git HEAD: 344d32bf7f40183359592ef81ca6486e0587981b Last commit: 8 months ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: 6b4073f6a9f41c5c1fc3261965244d5571add5b5 Core tap last commit: 9 minutes ago Core tap branch: master HOMEBREW_PREFIX: /opt/homebrew HOMEBREW_BOTTLE_DOMAIN: https://mirrors.ustc.edu.cn/homebrew-bottles HOMEBREW_CASK_OPTS: [] HOMEBREW_MAKE_JOBS: 8 Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby CPU: octa-core 64-bit arm_firestorm_icestorm Clang: 14.0.3 build 1403 Git: 2.41.0 => /opt/homebrew/bin/git Curl: 8.1.2 => /usr/bin/curl macOS: 13.5.2-arm64 CLT: 14.3.1.0.1.1683849156 Xcode: N/A Rosetta 2: false 我该如何排查? *** 先update ,然后upgrade ─➤ brew update && brew upgrade fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': Recv failure: Operation timed out Error: Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-core failed! ==> Homebrew collects anonymous analytics. Read the analytics documentation (and how to opt-out) here: https://docs.brew.sh/Analytics No analytics have been recorded yet (nor will be during this `brew` run). Installing from the API is now the default behaviour! You can save space and time by running: brew untap homebrew/core brew untap homebrew/cask ==> Downloading https://formulae.brew.sh/api/formula.jws.json #=#=- # # #=O#- # # -#O=- # # # ######################################################################################################################################################################################################################################################### 100.0% ==> Downloading https://formulae.brew.sh/api/cask.jws.json ######################################################################################################################################################################################################################################################### 100.0% Updated 1 tap (homebrew/services). No changes to formulae or casks. 查看 python3.11 版本,还是没有更新 ╰─➤ python3.11 --version 1 ↵ Python 3.11.4
请问你们是通过什么命令安装macos软件? macos Sonoma 不能使用brew, 请问你们是怎么安装软件的?
针对苹果签名的一些问题,想要咨询各位老师: 1、是否macOS和iOS要能使用打包后的应用程序必须经过签名? 2、为何需要代码签名呢? 3、macOS和iOS代码签名的步骤是否一致呢? 4、签名和公证是一体的吗,是包含关系吗?它们有何区别? 5、macOS和iOS应用签名是否所需要的账户可以一样的?比如我有一个苹果个人开发者账户,我是否可以既用于macOS项目的签名也可以用于iOS项目的签名? 6、是否有macOS/iOS签名分发的比较详细的教程呢?
我的显示器是32:9的,分辨率为3840X1080。 windows10如果设置分辨率为1920X1080,那么画面只在显示器的中间,如果设置为3840X1080就是全部利用。 mac os只能全部利用,如果设置为1920X1080就是强制拉伸。
#include #include #include int main() { CSIdentityQueryRef query = CSIdentityQueryCreateForCurrentUser(kCFAllocatorSystemDefault); CFErrorRef error; uint8 qdata[1024] = {0}; if (CSIdentityQueryExecute(query, kCSIdentityQueryGenerateUpdateEvents, &error)) { CFArrayRef foundIds = CSIdentityQueryCopyResults(query); if (CFArrayGetCount(foundIds) == 1) { CSIdentityRef userId = (CSIdentityRef) CFArrayGetValueAtIndex(foundIds, 0); CFDataRef data = CSIdentityGetImageData(userId); CFDataGetBytes(data, CFRangeMake(0, CFDataGetLength(data)), qdata); } } CFRelease(query); } 这段代码是获取当前用户的头像路径。 我用 g++ 编译的时候报错, ethson@macbookpro:~/Project/cpp_example$ g++ ./example.cpp -o exam Undefined symbols for architecture x86_64: "_CFArrayGetCount", referenced from: _main in example-7e578a.o "_CFArrayGetValueAtIndex", referenced from: _main in example-7e578a.o "_CFDataGetBytes", referenced from: _main in example-7e578a.o "_CFDataGetLength", referenced from: _main in example-7e578a.o "_CFRelease", referenced from: _main in example-7e578a.o "_CSIdentityGetImageData", referenced from: _main in example-7e578a.o "_CSIdentityQueryCopyResults", referenced from: _main in example-7e578a.o "_CSIdentityQueryCreateForCurrentUser", referenced from: _main in example-7e578a.o "_CSIdentityQueryExecute", referenced from: _main in example-7e578a.o "_kCFAllocatorSystemDefault", referenced from: _main in example-7e578a.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) 我猜测是没有链接系统库造成的,但是我查了一圈,也没找到应该链接哪个库,求指教。
Xcode 有没有像VScode一样的命令行面板? "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241003/0ed160db2701cc10a6adef6cd4eaf2c9.png) 1、我觉得在VSCode中,有一个命令行面板很方便输入一些命令。但是Xcode中没有找到。 2、请问那么如何在macos的默认命令行中快速进入当前的文件目录下呢?
tauri应用打包,提交到mac app store,提交的时候报CFBundleExecutable 不正确,可是我设置了和APP名字一样的,一直报错,plist 里面检查没有问题,有人遇到这个问题过吗 Asset validation failed (90259) Bad Bundle Executable. You must include a valid CFBundleExecutable key in your bundle's information property list file.
包括留下印记等。很久以前的mbp遇到过,时过境迁不知道还会不会。
mac终端crontab定时执行python文件没成功。 crontab里面有记录时间的txt是成功了的,说明crontab开启了的。 挺好奇,因为之前也是这样设置的,是能够自动执行的,关过一次机后,现在也不知道为啥就不能自动执行了。 py文件里面的路径都是绝对路径,python的环境变量是在anaconda里面。应该不是路径的锅吧? "https://wmprod.oss-cn-shanghai.aliyuncs.com/community/1724816193804_pDRy.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/community/1724816193804_pDRy.png) "https://wmprod.oss-cn-shanghai.aliyuncs.com/community/1724816216016_C8jy.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/community/1724816216016_C8jy.png) wq@zjx-MacBook-Pro ~ % /Library/anaconda3/bin/python /Users/wq/Desktop/auto_punch.py ['201604175', '201605654', '201604177', '201604156'] ['091860', '243523', '310426', '197894'] 直接尝试执行python环境变量加上文件路径,也是能够执行的。 wq@zjx-MacBook-Pro ~ % sudo crontab -l Password: */5 * * * * /Library/anaconda3/bin/python /Users/wq/Desktop/auto_punch.py */1 * * * * /bin/date >> /Users/wq/Desktop/time.txt 这里就只有time.txt在不断更新,py文件却毫无反应。