无需付费开发者账户,用Appium测试iOS真机已安装应用可行吗?
Hey there! As someone who’s made the jump from Android to iOS testing with Appium, I can give you a straight answer here: No, you don’t need a paid Apple Developer account to test an already-installed app on your iPhone.
Here’s what you need to do instead:
- Pair your Mac with your iPhone: Open Xcode, go to
Window > Devices and Simulators, connect your iPhone via USB, and follow the prompts to trust the device on both your Mac and iPhone. This is completely free and only needs to be done once. - Get the app’s bundle ID: You’ll need this to tell Appium which app to launch. Install
libimobiledevice(via Homebrew withbrew install libimobiledevice) then runideviceinstaller -lin your terminal—this will list all installed apps along with their bundle IDs. - Configure Appium’s desired capabilities: In your test script, set the
bundleIdto the value you grabbed, and make sureudidis set to your iPhone’s unique device ID (you can find this in Xcode’s Devices window or viaidevice_id -l). - Enable Developer Mode on your iPhone: For iOS 16 and later, head to
Settings > Privacy & Security > Developer Mode, toggle it on, and restart your device. This lets your Mac interact with the app for testing.
A quick caveat: If you were trying to deploy your own unreleased app to the iPhone for testing, you’d need a paid account (or work around it with a free account’s 7-day temporary signing, which is a hassle). But since you’re testing an app that’s already installed, the free route works perfectly.
I remember scratching my head over this when I first switched to iOS testing—hope this clears things up for you!
内容的提问来源于stack exchange,提问作者Marj

