Tôi vừa mới cài đặt Xcode 7 beta và chuyển đổi dự án Swift của mình với hướng dẫn Swift 2.Xcode 7 beta - lỗi xây dựng (xcassets)
xây dựng là OK nhưng xcassets: Tôi đạt được lỗi này trong nhật ký:
CompileAssetCatalog /Users/phoenix/Library/Developer/Xcode/DerivedData/{...}/Build/Products/Debug-iphoneos/{...}.app {...}/Images.xcassets
cd /Users/phoenix/Dev/Xcode/{...}
export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/actool --output-format human-readable-text\
--notices --warnings --export-dependency-info /Users/phoenix/Library/Developer/Xcode/DerivedData/{...}/Build/Intermediates/{...}.build/Debug-iphoneos/{...}.build/assetcatalog_dependencies.txt
--output-partial-info-plist /Users/phoenix/Library/Developer/Xcode/DerivedData/{...}/Build/Intermediates/{...}.build/Debug-iphoneos/{...}.build/assetcatalog_generated_info.plist\
--app-icon AppIcon --launch-image LaunchImage --compress-pngs\
--enable-on-demand-resources YES --target-device iphone --target-device ipad\
--minimum-deployment-target 7.0 --platform iphoneos --compile\
/Users/phoenix/Library/Developer/Xcode/DerivedData/{...}/Build/Products/Debug-iphoneos/{...}.app\
/Users/phoenix/Dev/Xcode/{...}/Images.xcassets
/Users/phoenix/Dev/Xcode/{...}/Images.xcassets: error:
Failed to find a suitable device for the type SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPad-2 with runtime SimRuntime :
9.0 (13A4254u) - com.apple.CoreSimulator.SimRuntime.iOS-9-0
Failure Reason: Failed to create new simulator device that matches SimDeviceType :
com.apple.CoreSimulator.SimDeviceType.iPad-2 for runtime SimRuntime :
9.0 (13A4254u) - com.apple.CoreSimulator.SimRuntime.iOS-9-0 ((null))
UPD: Bây giờ khi tôi cố gắng để khởi động iOS Simulator từ "công cụ phát triển mở" menu từ dock tôi đạt được lỗi này:
Dyld Error Message:
Library not loaded:
@rpath/SimulatorKit.framework/Versions/A/SimulatorKit
Referenced from: /Applications/Xcode-beta.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator
Reason: image not found
UPD2: Khi cố gắng ra mắt mô phỏng từ thiết bị đầu cuối có cảnh báo:
$ Applications/Simulator.app/Contents/MacOS/Simulator
dyld: warning, LC_RPATH @loader_path/../../../../Library/PrivateFrameworks in /Applications/Xcode-beta.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator being ignored in restricted program because of @loader_path
dyld: Library not loaded: @rpath/SimulatorKit.framework/Versions/A/SimulatorKit
Referenced from: /Applications/Xcode-beta.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator
Reason: image not found
Tôi nghĩ đây là vấn đề chính ...
Xcode khởi động lại, iOS Simulator và Mac (nếu cần)? – LinusGeffarth
@LinusG., Xcode đã được khởi động lại một số lần ... Trình mô phỏng iOS không thể khởi động lại được vì nó không khởi động ... OK, giờ tôi sẽ thử khởi động lại mac. – PhoeniX
Yeah nếu điều đó không hoạt động, hãy thử cài đặt lại Xcode. Nếu bạn vẫn có .dmg thì đó không phải là vấn đề. – LinusGeffarth