我刚刚在iPhone 7上安装了第一个iOS 11测试版,我对尝试NFC感兴趣.在设置中没有任何关于它.我想知道是否有任何示例代码显示如何读取标记.任何人都可以在代码片段中展示如何使用Core NFC SDK吗?
我将 next auth v4 与 next js 13 beta 和服务器组件一起使用,一切正常。但我有一种情况,我需要知道登录的用户 ID,因为我正在使用下一个身份验证,我可以访问会话,我可以使用 useSession() 但随后我需要使该组件成为客户端组件,所以我想在服务器上使用它,我可以在 API 中使用 getServerSession 因为我可以访问 req & res 对象,但在下一个带有新应用程序目录的 js beta 中,我不能这样做。如果您知道如何解决该问题,请告诉我。谢谢
import { getServerSession } from "next-auth";
import { authOptions } from "@/pages/api/auth/[...nextauth]";
const Test = async () => {
const user_id = 1; // How do I get user id from session, user_id is available in session
// I don't have access req & res object in server component.
const data = await getServerSession(request, response, authOptions); …Run Code Online (Sandbox Code Playgroud) 我担心答案很可能"不可能",但我想知道是否有办法检测我上传到Play商店的apk是alpha/beta还是稳定频道.
我想实现这一点,因为我有一个完整的菜单导致Beta功能,我想隐藏在稳定的频道中.
这非常有用,因为虽然我修复了我推送到Store的常规错误,但我不希望每次都使用或不使用beta按钮重新编译.
遗憾的是,我没有代码可以分享,但任何帮助或建议都将受到高度赞赏

我觉得这个功能确实有一个很好的用例.请考虑以下情形:
在升级到最新的Xcode 7 Beta后运行我的应用程序时,我在控制台中收到以下消息:
objc[51750]: Class STGenericIntentDateRange is implemented in both /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/SiriTasks.framework/SiriTasks and /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/PhotosUI.framework/PhotosUI. One of the two will be used. Which one is undefined.
Run Code Online (Sandbox Code Playgroud)
我在Apple的文档或网上任何地方都找不到任何关于STGenericIntentDateRange的内容.它似乎没有影响我的应用程序,并且在构建时没有相关的警告 - 只是记录消息.
我猜这只是一个beta冲突问题,处理一些很少使用的日期功能,但我想知道是否有其他人看过这个或知道修复?
我注意到在Xcode 6-beta中没有适用于iOS6的预览或模拟器,所以我想知道有什么方法可以手动添加它吗?
在Catalina beta 4上运行的Xcode 11 beta 5中打开未更改的SwiftUI“ Hello World”项目会产生“加载插件失败”对话框警告。
有没有其他人经历过或知道如何解决?我删除了Xcode,重新下载了它,然后重新安装了它,但仍然遇到相同的错误。
除了删除有问题的模块外,不知道如何解决,但这是不对的。
错误详细信息:详细信息
Loading a plug-in failed.
Domain: DVTPlugInErrorDomain
Code: 2
Failure Reason: The plug-in “com.apple.dt.UVKit” at path “/Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework” could not be loaded. The plug-in or one of its prerequisite plug-ins may be missing or damaged.
Recovery Suggestion: The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled.
User Info: {
DVTPlugInDYLDErrorMessageErrorKey = "dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework/UVKit, 0): Symbol not found: _$s2IDs12IdentifiablePTl\n Referenced from: /Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework/UVKit\n Expected …Run Code Online (Sandbox Code Playgroud) 我刚刚按照给定的说明安装了ZF2beta5应用程序:
$ git clone git://github.com/zendframework/ZendSkeletonApplication.git ./
Cloning into '.'...
remote: Counting objects: 1494, done.
remote: Compressing objects: 100% (660/660), done.
remote: Total 1494 (delta 681), reused 1373 (delta 581)
Receiving objects: 100% (1494/1494), 397.42 KiB | 357 KiB/s, done.
Resolving deltas: 100% (681/681), done.
$ php composer.phar install
Installing dependencies
- Installing zendframework/zendframework (dev-master)
Cloning d6b0afe61149c6d0669743aab5c73285c42cd0db
zendframework/zendframework suggests installing doctrine/common (Doctrine\Common >=2.1 for annotation features)
Writing lock file
Generating autoload files
Run Code Online (Sandbox Code Playgroud)
当我访问该应用程序时,我收到以下错误:
致命错误:第220行的./vendor/zendframework/zendframework/library/Zend/I18n/Translator/Translator.php中找不到类"区域设置"
我没有Doctrine按照建议尝试安装(因为我最后不想使用Doctrine).
有人知道如何解决这个问题吗?
我刚刚将我的iOS 8 beta应用程序的一个小更新(0.1.0到0.2.0)上传到Apple TestFlight.我的应用程序之前获得了Apple TestFlight的批准,我读到了次要更新不需要另外审核.这仍然是这样吗?(我问,因为我需要提交它进行另一次审查,即使更改很少)
我们一直在使用Apple的TestFlight工具分发我们应用程序的beta版本几个月(在合并到AppStore之前从旧的TestFlight服务迁移).事情顺利进行到今天.在将新的beta版本上传到TestFlight后,该应用程序不再安装在设备上(带有iOS 8.3的iPhone 6).
打开TestFlight应用程序并点击"安装"以安装应用程序的最新测试版时,TestFlight会下载该应用程序,但安装完成后,应用程序图标将消失.TestFlight应用程序中的按钮更改回"安装",但点击它会显示警告:
"无法安装[app name].该应用目前正在下载"
我们尝试过:
这看起来像iOS 8.3的问题. 在早期iOS版本的设备上安装确实成功:
有没有人遇到过这个问题并找到了解决方案?
一旦我的手表应用程序启动,它就会崩溃并出现以下错误:
2017-08-17 13:59:54.304792-0300 watchOS4 Extension[11500:1617313] -[SPApplication _accessibilityInitialize]: unrecognized selector sent to instance 0x79e5b8f0
2017-08-17 13:59:56.173675-0300 watchOS4 Extension[11500:1617313] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SPApplication _accessibilityInitialize]: unrecognized selector sent to instance 0x79e5b8f0'
*** First throw call stack:
(
0 CoreFoundation 0x015ae80d __exceptionPreprocess + 189
1 libobjc.A.dylib 0x00f22bcf objc_exception_throw + 49
2 CoreFoundation 0x0162f978 -[NSObject(NSObject) doesNotRecognizeSelector:] + 136
3 CoreFoundation 0x015322c4 ___forwarding___ + 1300
4 CoreFoundation 0x01531d8e _CF_forwarding_prep_0 + 14
5 UIAccessibility 0x19a13e2c __54+[UIAccessibilityLoader _accessibilityLoadSubbundles:]_block_invoke.338 + 44
6 libdispatch.dylib …