2011-12-07 25 views
5

tôi nhận được lỗi này mối liên kết lạ:Xcode liên kết lỗi: nộp quá nhỏ so với kiến ​​trúc ARMv7

ld: in /Users/.../test project/iSMP.framework/iSMP, file too small for architecture armv7

collect2: ld returned 1 exit status Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1

Xcode vers: 4.0.2

Nếu tôi biên dịch cho mô phỏng, tôi nhận được

... file too small for architecture i386

google không giúp ích gì cả ..

Tôi đã cố gắng:

  • lại thêm khuôn khổ
  • tìm kiếm rõ ràng con đường
  • khuôn khổ chuyển sang một thư mục khác nhau và thêm lại.

Cập nhật: sản lượng từ lipo -info libiSMP-2.1.a

Architectures in the fat file: libiSMP-2.1.a are: armv6 armv7 i386

như vậy, nó không phải từ kiến ​​trúc không phù hợp;

Cảm ơn trước!

+3

Xây dựng sạch đã giải quyết vấn đề này cho tôi ... – Ondrej

+0

Các bước sau để tôi giải quyết vấn đề: 1. Đóng Xcode 2. Xóa thư mục DerivedData 3. Rebuild – cndv

Trả lời

6

tôi đã nhận được các giải pháp từ nhóm hỗ trợ của khuôn khổ này (nhờ chàng trai):

Symbolic links are turned into flat files when they are moved from OS/X to Windows. The iSMP framework has the following structure: iSMP.framework/iSMP (symbolic link pointing to libiSMP-2.1.a)/ Headers/libiSMP-2.1.a

To fix the issue, you might open the terminal application on Mac and move to the iSMP.framework directory. When you type 'ls -l iSMP' command you will notice that the iSMP file has no longer the 'l' attribute. You should then recreate the symbolic link by deleting the iSMP file. type then 'ln -s libiSMP.2.1.a iSMP' .This will create the link.

You may now rebuild the project.

Another solution to fix the problem is to delete the iSMP file and rename libiSMP-xx.a to iSMP.

TL/DR: Symbolic links được biến thành các tập tin phẳng khi họ đang di chuyển từ OS/X để Các cửa sổ. Bạn cần gia hạn chúng.

+1

Điều này đã giúp tôi giải quyết vấn đề. Tôi tạo lại symlink và nó hoạt động. – nsantorello

+0

Tôi có vấn đề tương tự với libjpeg.dylib, tôi đã thay thế toàn bộ dylib. – 2am

Các vấn đề liên quan