NISession() returns error - Apple Nearby Interactions - ios

I have downloaded the Nearby Interactions project that Apple released here. When I try to run the application I get this error
I have not modified the original project and there is nothing in the ReadMe that details extra setup configuration. Only that certain devices can be used.
There are no logs to accompany this and so I'm not quite sure on the cause of this. I see others have been able to run the project and so wondering if anyone has any insight into this
Running on an iPhone 14 device
Also, as a side to this, if anyone has any example app they have built with Nearby Interactions but in SwiftUI I would love to see how you integrated it in.
Thanks!

Related

While developing in Swift for an iOS app, how do we check for a trusted environment?

While scanning our iOS app, the tool flagged the app for:
"The application does not check to ensure the operating environment can be trusted."
We just can not seem to find any information about what exactly this issue is. Looking at reports of other scanned apps, some have this but many do not.
Thank you in advance
Links from Report:
https://owasp.org/www-project-mobile-top-10/2016-risks/m9-reverse-engineering
https://cwe.mitre.org/data/definitions/284.html
This was the response when I queried the scanning tool (Kryptowire) about this finding:
The trusted environment check refers to the application checking for things such as Root access or Jailbreaks on the device. There are several open source projects that can help with this functionality such as Rootbeer for Android (https://github.com/scottyab/rootbeer) and for iOS there is DTTJailbreakDetection (https://github.com/thii/DTTJailbreakDetection).

Xcode error maximum app limit reach when trying to run app on my iPhone

This is one question I am searching for all over the internet, got a lot of results but not for my situation.
As I don't have any apps installed on my device I didn't know how to solve this problem.
What should happen:
- Xcode should install the app for testing camera features I am implementing
What actually happen:
- Xcode fail to install the app saying there is more than three apps installed
As I was about to ask this question, I found somewhere that if I have some apps with the cloud symbol on them like they are in "suspense animation", as I like to call it, you need to delete all apps with this cloud symbol (because you don't use this apps so often they just get partially deleted from your device, meaning you have short storage)
So I am posting this because maybe is the same scenario for a lot of fellows here and could be something to try!
I hope this may help some folks!
Cheers mates!

IOS 12 Unwanted communication Reporting Extension Working on Phone but not on Messages app

I have been trying to make the new iOS extension Unwanted Communication Reporting work. Currently I couldn't find any good walk-through tutorial or code-sample to make it work. Above that by just firing up a new project with this extension and building it shows me the option of reporting in the Phone App but not on the Messages app, Moreover, the option to enable it only appears in phone app but it says "sms/phone" so I think this should work for both of them.
I know its in beta right now but just want to know if anyone had any luck with it. Also, There is no code to share as its just the boiler plate that comes with the new project.
This might have been a personal issue. I reset the whole phone and now I can see the options to report message. Apple might have fixed it in their latest iOS build or it might have just been my device issue.
Apple's developer site specifies ”SMS and call spam reporting," which is an app extension that you will have the option of turning on or off.
You may enable an Unwanted Communication extension in the Settings app. I am not sure if Apple will utilize this but i know for android - screen turns red when such spam calls come in, also caller id notes that but currently apple seems to have found a middle ground.
The following worked for me, you can try:
Remove command definition for this in Plist file.
Delete the Target in project (you can delete code folder).

Listing all available WiFi access points in iOS

I am trying to build an iOS application where I'll show the user a list of available WiFi Access Points to the user. First of all, I know that trying to do this will get my Application auto-denied in the App Store and that's okay, I'm only doing this for research purposes.
While I was researching, I found this GitHub library but it only works for 4.x and 5.x. This topic was also discussed in this question on how to use the iphone-wireless library but the top answer's link is down. Another answer linked this GitHub repo with a sample project but it seems that it only scans for other devices connected to where your device is currently connected.
I also found iPhone-Wireless' Google Code page but there's no guide whatsoever on how to use it.
Has anyone done this before? Listing all the available WiFi Access Points? I am okay with using libraries that will make the App Store reject my application as I have to plans of distributing it.

Only log in Debugger, but no data in report

I'm now testing my project with TestFlight, I can see some logs (including checkpoint, session_start, etc) in SDK Debugger, but my reports are empty in Build. I send email to support#testflightapp.com, asked the question on Twitter, and even checked the tweets listed, but still cannot find the solution..I think SO is the only site I can refer to help now..
Have anyone met this issue before & solved now?? And btw, where is the TFLog? I cannot find any debug log that I set.
Thanks in advance!
EDIT:
Here're two screenshots that will show my issue clearly.
You see, I sent feedback, checkpoints (and there're also some session_stard/end logs), but no detail report. :(
SDK Debugger: The TestFlight SDK Debugger lets you see your team's SDK data before it hits our queues. The console also shows orphaned SDK events which can help you confirm you have implemented the SDK correctly.
So I think I implemented the SDK correctly. I tried both SDK v1.0 & v.0.8.3, and I build a new project for testing this service, same result.
How I wish I can offer bounty now!! Please help..
Finally, I got a reply from Testflight team:
To be blunt we've been having some stability issues which seem like they're the root cause of your trouble. The team is working as fast as they can to bring you a faster, more stable TestFlight.
unfortunately..
And I found the TFLog (tested reports from my simulator, but cannot receive reports for my device yet):
choose your desired build in Builds section;
choose Sessions in Reports section;
choose a desired tester, and you'll find some logs like:
click the blue INFO icon to open a detail dialog:
and at the top right corner, you'll find a Events button, click to open a selection area, then just select the Log and you'll get the TFLogs.
Just a heads up for anyone experiencing issues with the Testflight SDK not logging events at all.
Double check if you are also using Flurry for Analytics and see if disabling it solves the problem (it did for me). I read somewhere that this is a known issue with the way exception handlers have been implemented on Testflight SDK.

Resources