TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Python grapples with Apple App Store rejections

254 点作者 leephillips11 个月前

8 条评论

heavyset_go11 个月前
It&#x27;s not just Apple that pulls shenanigans like this.<p>Try building a Python app with PyInstaller while you have Windows Defender live scanning on, which is the default setting. You won&#x27;t even be able to compile a binary without Defender preventing you from doing so.<p>Similarly, try running the binary produced by PyInstaller with Windows Defender on. Defender will say it&#x27;s malicious and won&#x27;t run it.<p>It&#x27;s a bit dystopian that both major OS platforms go out of their way to prevent you from distributing and running your Python apps.
评论 #40815578 未加载
评论 #40817250 未加载
评论 #40817496 未加载
评论 #40818529 未加载
评论 #40817311 未加载
评论 #40864037 未加载
评论 #40816175 未加载
edflsafoiewq11 个月前
I thought this was interesting<p>&gt; Alex Gaynor suggested that the project try a an approach that Keith-Magee had not put forward inspired by Gaynor&#x27;s experience with the cryptography library. The project often receives complaints that the library refuses to parse a certificate that is technically invalid, but was in wide use. He said that the policy was to accept pull requests that work around those issues &quot;&quot;provided they are small, localized, and generally aren&#x27;t too awful&quot;&quot;. But, he added, these patches should only be accepted on the condition that someone complains to the third party (in this case Apple), and extracts some kind of commitment that they would do something about it. He suggested that the workaround be time-limited, to give users a decent experience &quot;&quot;while also not letting large firms simply externalize their bizarre issues onto OSS projects&quot;&quot;.<p>as a solution to the familiar problem of users wanting OSS to work around bugs in commercial software because OSS maintainers are easier to bully and they know bug reports to Megacorp go straight to a black hole.
评论 #40818576 未加载
gjsman-100011 个月前
Why can’t Apple just add “itms-services” as a forbidden URL scheme on a sandbox level? I don’t see why the App Sandbox can’t block (and isn’t already blocking) certain protocols.<p>Heck, what if I have a malicious web frame inside my app that tries to invoke “itms-services”, similar to this Polyfill.io debacle?
评论 #40815398 未加载
评论 #40815360 未加载
评论 #40815626 未加载
amelius11 个月前
Can we have Separation of Powers on our digital platforms?<p>It is pretty shitty that the one who sells phones also determines what goes on them.
评论 #40824070 未加载
评论 #40816991 未加载
TillE11 个月前
Obfuscation seems like a great way to get your developer account suspended. I suspect Apple is doing a lot more than just basic static analysis of the binary on disk.<p>Glad they went with a config option instead.
评论 #40816255 未加载
评论 #40815710 未加载
评论 #40816796 未加载
gorgoiler11 个月前
The offending string is only there because Python’s urllib has a hard-coded list of schemes which use a hostname component or “netloc”. It’s fine for that list to contain known schemes from RFCs. Anything else — including proprietary third party schemes — should just use a heuristic.<p>The list is called <i>uses_netloc</i> and is used to help parse the <i>user@host:port</i> part of https, ftp, etc. domains. It’s this list of schemes that includes the forbidden string <i>itms-services</i>, used for Apple’s proprietary iTunes software.<p>The only code that needs this is <i>urlunsplit</i> and <i>urljoin</i>. If your parsed URL has a netloc then the list isn’t even relevant — if you have a <i>netloc</i> then you are assumed to be in <i>uses_netloc</i>.<p>This all seems like a much more sensible approach than trying to selectively include or exclude naughty strings from the source code, per some corporation’s passive aggressive demands.
wodenokoto11 个月前
Why is the “ itms-services URL scheme” in base Python to begin with? Why does Python have code for interacting with iTunes out of the box?
评论 #40818995 未加载
lilyball11 个月前
Why does urllib have this URL scheme anyway? If Python libraries are hard-coding knowledge about Apple proprietary stuff, then it should be no surprise that Apple may take issue with that.
评论 #40816388 未加载
评论 #40816347 未加载
评论 #40815683 未加载