Dears, I'm struggling with something that I wasn't able to find on the internet.Here is my scenario:I have a (classic) bluetooth device (non iOS) running Linux (I don't have any access to source code or whatever) and its need an IP address/port to communicate (send/receive data).If I connect it to a WiFi network, I can use CFStreamCreatePairWithSocketToHost or NWEndpoint to create in/out socket streams to the device (the device can act either as Client or Server, that's why I can choose which network method to use).If I enable Bluetooth and Personal hotspot, I can connect (pair) to the device and send/receive data the same way as WiFi.But, on this case, I lost WiFi as iOS only supports Personal hotspot over Cellular network (3G/4G).That limits my (hardware) options as my App will only runs on iPhones or iPads with mobile data. I would like to use it also on WiFi iPads and iPods.My question is: is there any way my App can act as DHCP server (or similar) to provide an IP address to the device over Bluetooth ? So I can keep my WiFi on at the same time the device is connected to the phone/tablet using Bluetooth?thanks, Cassio
Post
Replies
Boosts
Views
Activity
Dears, I'm struggling with something that I wasn't able to find on the internet.Here is my scenario:I have a (classic) bluetooth device (non iOS) running Linux (I don't have any access to source code or whatever) and its need an IP address/port to communicate (send/receive data).If I connect it to a WiFi network, I can use CFStreamCreatePairWithSocketToHost or NWEndpoint to create in/out socket streams to the device (the device can act either as Client or Server, that's why I can choose which network method to use).If I enable Bluetooth and Personal hotspot, I can connect (pair) to the device and send/receive data the same way as WiFi.But, on this case, I lost WiFi as iOS only supports Personal hotspot over Cellular network (3G/4G).That limits my (hardware) options as my App will only runs on iPhones or iPads with mobile data. I would like to use it also on WiFi iPads and iPods.My question is: is there any way my App can act as DHCP server (or similar) to provide an IP address to the device over Bluetooth ? So I can keep my WiFi on at the same time the device is connected to the phone/tablet using Bluetooth?thanks, Cassio
I'm trying to create a project that has the following structure: Package Parser (a library and Resources)
Package Posts (a library with SwiftUI and Resources)
App itself
Isolated, both Packages build and Preview successfully. The App also runs fine.
When I add Package Parser to Package Posts as dependency to be able to use its Resources, I can build, test and run the App, but the Preview on Posts stop working.
The message from diagnostic is:
ld: warning: directory not found for option '-F/Applications/Xcode-beta.app/Contents/SharedFrameworks-iphonesimulator'
Undefined symbols for architecture x86_64:
"nominal type descriptor for Parser.XMLPost", referenced from:
Diagnostic - https://developer.apple.com/forums/content/attachment/8effb117-ffad-4ea6-859f-0cf47a12dea8
Here are the packages definitions:
let package = Package(
name: "Parser",
platforms: [.iOS(.v14)],
products: [
.library(name: "Parser",
targets: ["Parser"])
],
targets: [
.target(name: "Parser",
resources: [.process("Resources")]),
.testTarget(name: "ParserTests", dependencies: ["Parser"])
]
)
let package = Package(
name: "Posts",
platforms: [.iOS(.v14)],
products: [
.library(name: "Posts", targets: ["Posts"])
],
dependencies: [
.package(path: "../Parser")
],
targets: [
.target(name: "Posts", dependencies: ["Parser"]),
.testTarget(name: "PostsTests", dependencies: ["Posts"])
]
)
Is it possible to Preview a Swift Package that has a dependency? How?
Thanks and regards, Cassio
Hi. I'm trying to implement App Attest on my App and I followed the guidelines from https://developer.apple.com/documentation/devicecheck/validating_apps_that_connect_to_your_server but step 5 isn't waking.
I got an example from https://blog.restlesslabs.com/john/ios-app-attest to implement all 9 steps using Python.
Is there any example of this server-side implementation so I can double check what's wrong? PS: I saw one in Kotlin but that doesn't help me.
I'm testing on an iPhone X and I can get the key identifier, the challenge and the attestation object. All steps except 5 are working (well, I had to base64 decode the identifier for step 9).
Please, any help is appreciated.
Regards, Cassio