intbizth / ionic-soccer

0 stars 0 forks source link

Live Reload not work on ios #192

Closed time-wcrp closed 8 years ago

time-wcrp commented 8 years ago

platform: ios version: 9.0

ปัญหาที่เกิด คือ บน Simulator ไม่สามารถเชื่อมต่อกับ localhost หรือ ไอพีของ localhost ได้ http://stackoverflow.com/questions/32978301/ios-simulator-refuses-to-connect-to-local-hostname ซึ่งไม่ใช่ปัญหา App Transport Security https://github.com/intbizth/ionic-soccer/issues/44 @intbizth/ionicer

time-wcrp commented 8 years ago

แนวทางการแก้ไขปัญหา

  1. รันบน ios 8.4 (กำลังทดสอบ)
  2. ใช่ proxy ของ ionic (กำลังทดสอบ)

@intbizth/ionicer

godoakbrutal commented 8 years ago

ขอบคุณครับ

inwdragon commented 8 years ago

วิธีแก้ปัญหา (version.แก้ขัด)

ปัญหา

เนื่องจาก Apple ได้ทำการปล่อยให้ Update OSX เป็นเวอร์ชัน Capitan, Xcode เป็น 7.1, iOS Emulator เป็น 9.1
Apple ได้มีการอัพเดทส่วนที่จัดการความปลอดภัยของ OS ใหม่ ทำให้ Ionic Dev. ไม่สามารถทดสอบแอปบน iOS Emulator 9.1 ได้ 

แนวทาง

ให้เข้าไปที่เมนู Manager Device... ของ iOS Emulator จากนั้นเปลี่ยนชื่อ iPhone 6 ที่รันบน iOS 9.1 ให้เป็นชื่ออื่น ดังรูป screen shot 2558-10-31 at 11 33 32 am

เมื่อทำการรันคำสั่ง

ionic run ios -lcb

ionic ก็จะไปรัน iOS emulator ที่เวอร์ชันที่ต่ำกว่า 9.1 ดังรูป ทำให้ Live Reload กลับมาใช้ได้ ดังเดิม :tada::tada::tada: screen shot 2558-10-31 at 11 41 06 am

เอวังด้วยประการฉะนี้ @iitum @KannipaB @godoakbrutal @liverbool @wannaporn @TheBing

godoakbrutal commented 8 years ago

It's work !! :+1: