Getting Network Link conditioner to only affect iOS Simulator, not the entire Mac? - xcode

Is there a way to use Apple's Network Link Conditioner in such a way that it only affects the iOS Simulator, and not the rest of the Mac?
My KB+M is connected to the Mac via a program called Synergy, which lets me share my Windows KB+M with it, and attempting to run unit tests on the iOS Simulator with any packet loss profiles selected in the Network Link Conditioner makes it almost impossible to control the Mac at all.

I have had the same issue for a while and have been trying to find a solution.
I eventually gave up and started using the Charles Web Proxy instead because it's free (they claim only for 30 days but it works forever) and it allows you to choose which websites you want to throttle internet access for.
Please share if you can do something like that with the network link conditioner.

Related

Xcode cant recognise iPhone when the VirtualBox MacOS can

so sorry if this has been answered before but I've seen several similar issues but they had fixes that didn't work for me and I don't know what else to do. I have made an app for my Uni work that I'm wanting to get tested by friends via Testflight. I am at the point where I am trying to archive it and I get the errors about no devices or provisioning profiles. Everywhere I looked says if I just connect my IPhone with "Automatically Manage Signing" active this will all be solved. But I just cannot for the life of me get Xcode to recognise phone.
In Virtualbox I have USB 2.0 selected and added the IPhone filter. I have also tried when it was set to 3.0...
In the MacOS the Iphone is detected as a connected USB2.0/3 device. The phone also stops charging as it connects which I assume is good since its connected to a non pyhical machine so cant charge from it if that makes sense...
However the Iphone isn't detected as a device in Xcode
I just don't know why. Is there something I've missed to fix it or a way to manually do the signing as I need to archive the app so I can get started with testflight. Id appreciate any help.

How do I fix xamarin.ios app crash on launch in iPhone 8 cellular data?

We have develop a xamarin.ios app thats work fine on all iPhone and iPad except iPhone 8. Its crashed on launch in iPhone 8 on cellular data. Its working good on wifi. I don’t have iPhone 8 device right now, so I am checking it on simulator. But simulator using wifi and its working good on simulator. How can I identify the problem and how to solve it?
FYI we are consuming a service on app launch that need an active internet. Any idea, Please reply.
This should really be a comment, but I don't have the reputation for one.
Without knowing what is happening when your app has launched, have you tried testing your app without a Wi-Fi or data connection?
The issue might be that your clients device is getting a different response from the service that you have not accounted for and this might be causing exceptions etc.
We are checking on IPv6 network but our API was not compatible to IPv6. When we change the network to IPv4, Its work perfectly. But as per apple guidelines we must have to compatible our API to IPv6 network.

Safari Web Inspector network throttling

I'm currently remote-debugging a website on my iPhone using Safari v8 and need to simulate different network speeds.
The Chrome Developer Tools have the functionality to throttle the network connection (simulate 3G, wifi etc.) or even to completely switch it off.
Does the Safari Web Inspector have similar functionality?
At the moment I'm getting around it by just switching off my wifi as I just need to test no network for now, but might need the functionality in the future.
There is currently not a way to do that natively in Safari but you might try using something like Charles Proxy that can throttle your browser or system connection (win, mac, linux).
Just found a way to do it without having to use a proxy like Charles:
Install XCode
Connect iPhone to mac via USB
Launch XCode
Access developer settings on iPhone
Use "Network Link Conditioner"
Longer blog post I wrote: Enable network throttling on iPhone in 5 steps
Hope this helps!
Update for 2023 and later
Other answers are no longer up to date and don't work anymore. Today you need to use an add-on from Apple called Network Link Conditioner.
You can download it with additional tools for xCode.

Difference in behavior between Xcode and OTA Ad-hoc distribution

I have my app working to my satisfaction both in the simulator and on two devices when debugging through Xcode 4.3.2. I use OTA Ad-hoc distribution to send to my beta testers. After archiving, saving, and uploading my ipa and plist file to my website, I then download and successfully install the app on my phone.
Sounds good, right?
HOWEVER, I am using CoreAudio and CoreData, and low and behold suddenly there is no sound in my app. I delete and install OTA on the same devices I am debugging with, so I am at a loss to where the problem is occurring.
I have a feeling that there might be an underlying problem with my Core Data model (which feeds my sound) but checks upon checks seem to verify that it is working. It DOES work when I install from Xcode, unplug, close, and reopen the app on the device. Only the OTA install has this problem.
Has anyone encountered any differences in behavior like this? I checked my build settings and the only difference I see for AdHoc is using the Entitlements.plist, which only useful setting appears to be NO to debugging.

Wireless Debugging in Xcode4.2

When I use wireless debugging in Xcod e4.2 it tells me:
Don't know how to run. Try "help target".
Please see "Wireless debugging in xcode" for more information.
Wireless debugging in Xcode 4.2 is still really unstable. I've only been able to get it up and running once or twice before needing to restart Xcode, disabling and reenabling wireless device support, restarting the device, and deleting the app from the device before trying it again (not necessarily in this order).
Hopefully they'll get it working better soon.

Resources