Appium บนอุปกรณ์ iOS จริง

ฉันใช้ความสามารถที่ต้องการต่อไปนี้กับ Appium และ iPad 2

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("udid", "ea56e8ae8e5f5235c16d5315f4cb34d81be55917");
capabilities.setCapability("platformName", "iOS");
capabilities.setCapability("deviceName", "iPad 2");
capabilities.setCapability("platformVersion", "8.3");
capabilities.setCapability("app", "/Users/Aress-QA/Desktop/PSt-forQA.ipa");
capabilities.setCapability("platformName", "iOS");
wd = new IOSDriver(new URL("http://0.0.0.0:4723/wd/hub"),capabilities);
wd.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);

แอปพลิเคชันเปิดตัวและขัดข้องในเวลาต่อมา คอนโซล Appium แสดงข้อผิดพลาดดังต่อไปนี้

info: [debug] [INST STDERR] 2015-11-04 14:51:55.082 instruments[9690:170378] WebKit Threading Violation - initial use of WebKit from a secondary thread.
info: [debug] [INST STDERR] 2015-11-04 14:51:55.984 instruments[9690:170400] Attempting to change event horizon while disengage
info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Permission to debug com.esct.PIt was denied. The app must be signed with a development identity (e.g. iOS Developer).

ใครสามารถช่วยได้บ้าง?


person Ashwin Pajankar    schedule 04.11.2015    source แหล่งที่มา


คำตอบ (1)


แอปของคุณไม่ได้ลงนามโดย Apple Developer ID ของคุณ คุณต้องทำสิ่งนั้นใน XCode

ตัวอย่าง: https://discuss.appium.io/t/the-app-must-be-signed-with-a-development-identity/2653

person Kristaps Mežavilks    schedule 04.11.2015
comment
คุณหมายถึงอะไรโดย 'ที่ไม่ได้ผล'? ฉันคิดว่าตอนนี้คุณได้รับข้อผิดพลาดที่แตกต่างออกไป เพราะฉันรู้วิธีแก้ปัญหานี้แล้ว ฉันเคยสัมผัสมาแล้วและอยู่ในโพสต์ที่แนะนำด้วย ข้อผิดพลาดเหมือนกันจริงหรือ? - person Kristaps Mežavilks; 05.11.2015
comment
ใช่ ข้อผิดพลาดก็เหมือนกันจริงๆ เราลองอย่างอื่นแล้วได้ผล เราลงนามแอปด้วยข้อมูลประจำตัวการพัฒนาและเปิดใช้งาน UIAutomation ในอุปกรณ์ที่ใช้งานได้ ขอบคุณมากสำหรับความช่วยเหลือของคุณ การตั้งค่าแอปนี้ด้วย iOS ค่อนข้างยุ่งยากเล็กน้อย - person Ashwin Pajankar; 05.11.2015