如何实现垂直平面检测(即墙壁)?
let configuration = ARWorldTrackingSessionConfiguration()
configuration.planeDetection = .horizontal //TODO
Run Code Online (Sandbox Code Playgroud) 我想在公共数据库的表中保存每个用户最多一条记录(即评级).为此,我需要保存当前用户ID或设备ID.但我怎么能得到它?
我再也无法启动我的反应本机应用程序了.我昨天更新了XCode,也许它与它有关?
$ react-native run-ios
Found Xcode workspace xyz.xcworkspace
CoreData: annotation: Failed to load optimized model at path '/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPackaging.framework/Versions/A/Resources
/XRPackageModel.momd/XRPackageModel 9.0.omo'
dyld: Symbol not found: _SimAudioHostUseSystemDefaultDeviceUID
Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/../../Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit (which was built for Mac OS X 10.12)
Expected in: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
in /Applications/Xcode.app/Contents/Developer/usr/bin/../../Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
Run Code Online (Sandbox Code Playgroud) 由于崩溃,我的scenekit应用程序因审核而被拒绝.在符号化的崩溃日志文件中,我可以看到它发生在MTLTextureDescriptorInternal validateWithDevice中.相同的版本适用于我的设备上的testflight.
大多数SCNNode只包含颜色或图像.我不使用着色器.有一个带有mp4文件的SKVideoNode和一个带有.obj的3D对象(SCNNode(MDLObject:obj)).
我怎样才能解决这个问题?
或者它可以与应用程序大小或IPV6有关,因为应用程序大于100MB而我只在WLAN上测试过?
谢谢!
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
...
Thread 0 name: Dispatch queue: com.apple.scenekit.renderingQueue.superoom.SuperoomV0x12736dda0
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000018173411c __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000181800ef8 pthread_kill + 112
2 libsystem_c.dylib 0x00000001816a5dac abort + 140
3 libsystem_c.dylib 0x000000018167ae54 __assert_rtn + 284
4 Metal 0x0000000183cd133c MTLReportFailure + 480
5 Metal 0x0000000183cb6350 -[MTLTextureDescriptorInternal validateWithDevice:] + 584
6 AGXMetalG4G 0x0000000105167060 0x105148000 + 127072
7 SceneKit 0x00000001905c35f0 -[SCNMetalResourceManager _newTextureWithDescriptor:] + …Run Code Online (Sandbox Code Playgroud) 我尝试使用aws-sdk-react-native模块:
https://github.com/awslabs/aws-sdk-react-native
配置花了一些时间,但由于这个链接,我可以列出主题:
https://github.com/awslabs/aws-sdk-react-native/issues/35
https://github.com/awslabs/aws-sdk-react-native/blob/master/SNS/IntegrationTests/SNSTests.js
该测试包括如何订阅获取电子邮件的示例,但不包括如何在应用程序中获取通知.我不知道如何获得platformEndpoint,PlatformApplicationArn和deviceToken.
endPoint = sns.createPlatformEndpoint({
PlatformApplicationArn: '{APPLICATION_ARN}',
Token: '{DEVICE_TOKEN}'
})
...
var subscribeRequest= {
"Protocol":"application",
"TopicArn":topicARN,
"Endpoint":endPoint
}
try{
await AWSSNS.Subscribe(subscribeRequest);
}catch(e){
console.error(e);
shouldResolve = false;
return shouldResolve;
}
Run Code Online (Sandbox Code Playgroud)
这有样品吗?我也在寻找一个认证样本.使用firebase会更容易吗?
谢谢
我索引了我的应用程序的内容,以便我可以在聚光灯下搜索它,也可以继续在应用程序内搜索.使用iOS 10它可以工作,在iOS 11中,它似乎既不能在我的设备上也不能在模拟器中工作.我是否必须为iOS11添加任何内容,或者它是否在测试版中不起作用?
(奇怪的是,在ios11 iPhone 6s模拟器中似乎缺少搜索字段,但在带有ios11的iPhone7模拟器中可以使用.)
我尝试了正确的对齐,但它仍然保持对齐.
let txt = SCNText(string: "TEST", extrusionDepth: 10)
txt.chamferRadius = 5 //0<chamfer<extrusion depth
txt.firstMaterial.diffuse.contents = UIColor.whiteColor()
txt.containerFrame = CGRectMake(-200, -150, 400, 200) //on iPad Air Sim in Landscape
txt.wrapped = true
txt.alignmentMode = kCAAlignmentRight
Run Code Online (Sandbox Code Playgroud)
怎么了?
谢谢!
我尝试暂停声音并获得异常:
UIAccessibilityPostNotification(UIAccessibilityPauseAssistiveTechnologyNotification,UIAccessibilityNotificationVoiceOverIdentifier)
“ NSInvalidArgumentException”,原因:“您必须传递辅助技术的标识符才能暂停。有关有效值的列表,请参见UIAccessibilityConstants.h。
怎么了?谢谢!
ios ×4
ios11 ×2
scenekit ×2
swift ×2
amazon-sns ×1
arkit ×1
cloudkit ×1
ios12 ×1
ios8 ×1
metal ×1
react-native ×1
swift3 ×1
xcode ×1
xcode9-beta ×1