The actual issue is that Xcode 13 does stop at breapoints, but using the debugger (po someObject) does not print but gives us an error:
warning: Swift error in scratch context: error:
/Path/To/OurApp/OurApp-Bridging-Header.h:14:9:
error: 'SomeSucessfulyUsedDependency.h' file not found
This issue happens on parts of our code, other parts work fine. This is reproducible.
The same project works fine with Xcode 12
Starting with Xcode 13, when running our app in DEBUG config on sim
or device (both iOS 15, but we have tested sims <iOS15 too), the
first line in console is:
error: invalid target, create a target using the 'target create' command
It looks like Xcode 13 is unable to create a target in LLDB. But maybe the console output is misleading and unrelated.
That obviously make debugging a none-nice process ...
Any help appreciated.
Post
Replies
Boosts
Views
Activity
I have fetched the Apple Sample code for SimpleTunnel project and modified it to build and run under current Xcode and Swift 5.
I am trying to establish a VPN tunnel app<->tunnel_server using the default configurations (default config.plist, default "Demo VPN" setting in "PacketTunnel" section of app).
My issue is that PacketTunnel Network Extension get terminated due to not having suitable Entitlements, at least this is how I read the log in Console:
-CMSessionMgr- CMSessionMgrHandleApplicationStateChange: CMSession: Client com.mycompany.com.example.apple-samplecode.SimpleTunnel.PacketTunnel with pid '3348' is now Terminated. Background entitlement: NO LongFormVideoApp: NO
I did follow this forum post to create appID and provisioning profile and I tripple checked I am using this profile for the "PacketTunnel" target.
Dumping the profile, that looks OK to me:
<key>Entitlements</key>
<dict>
<key>com.apple.developer.networking.networkextension</key>
<array>
<string>app-proxy-provider</string>
<string>content-filter-provider</string>
<string>packet-tunnel-provider</string>
<string>dns-proxy</string>
<string>dns-settings</string>
</array>
...
@eskimo:
Your helpful code of Socket API Helper does not compile on Swift 5 any more.
Reasons:
1: Cannot convert value of type 'UnsafePointer' to expected argument type 'UnsafeMutablePointer'
2: Cannot pass immutable value as inout argument: 'pointee' is a get-only property
And update would be super helpful and make my day.
Thx!
PS: I was forced to choose at least one tag and could not find a suitable one. Thus Xcode. Sorry.