Tôi có một ứng dụng mà tôi cần đổi tên để mã có thể được sử dụng lại chỉ với những thay đổi nhỏ và tôi gặp khó khăn.Đổi tên ứng dụng trong Xcode 6
Tôi đi theo liên kết này và nó dường như để trang trải nó nhưng khi tôi đã cố gắng xây dựng nó tôi nhận được một lỗi khi liên kết mà cũng sau:
Liên kết đến tài nguyên:
http://matthewfecher.com/app-developement/xcode-tips-the-best-way-to-change-a-project-name-in-xcode/
Đây là liên kết lỗi tôi nhận được và thông tin tôi thấy
Ld /Users/jeffjanes/Library/Developer/Xcode/DerivedData/solfEightFive-aqlpurtbbyfkqmgjdryrxicllljh/Build/Products/Debug-iphoneos/solfEightFiveTests.xctest/solfEightFiveTests normal arm64 cd "/Users/jeffjanes/Xcode Projects/solfEightFive/shell" export IPHONEOS_DEPLOYMENT_TARGET=8.0 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L/Users/jeffjanes/Library/Developer/Xcode/DerivedData/solfEightFive-aqlpurtbbyfkqmgjdryrxicllljh/Build/Products/Debug-iphoneos -F/Users/jeffjanes/Library/Developer/Xcode/DerivedData/solfEightFive-aqlpurtbbyfkqmgjdryrxicllljh/Build/Products/Debug-iphoneos -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/Developer/Library/Frameworks -filelist /Users/jeffjanes/Library/Developer/Xcode/DerivedData/solfEightFive-aqlpurtbbyfkqmgjdryrxicllljh/Build/Intermediates/solfEightFive.build/Debug-iphoneos/solfEightFiveTests.build/Objects-normal/arm64/solfEightFiveTests.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -bundle_loader /Users/jeffjanes/Library/Developer/Xcode/DerivedData/solfEightFive-aqlpurtbbyfkqmgjdryrxicllljh/Build/Products/Debug-iphoneos/shell.app/shell -framework XCTest -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=8.0 -Xlinker -dependency_info -Xlinker /Users/jeffjanes/Library/Developer/Xcode/DerivedData/solfEightFive-aqlpurtbbyfkqmgjdryrxicllljh/Build/Intermediates/solfEightFive.build/Debug-iphoneos/solfEightFiveTests.build/Objects-normal/arm64/solfEightFiveTests_dependency_info.dat -o /Users/jeffjanes/Library/Developer/Xcode/DerivedData/solfEightFive-aqlpurtbbyfkqmgjdryrxicllljh/Build/Products/Debug-iphoneos/solfEightFiveTests.xctest/solfEightFiveTests ld: file not found: /Users/jeffjanes/Library/Developer/Xcode/DerivedData/solfEightFive-aqlpurtbbyfkqmgjdryrxicllljh/Build/Products/Debug-iphoneos/shell.app/shell clang: error: linker command failed with exit code 1 (use -v to see invocation)
Có điều gì tôi thiếu không? Tôi đã thử làm sạch nó và điều đó dường như không có tác dụng.
Đây chỉ là một số giải thích quá trình được mô tả trong các liên kết ở trên cho thấy như sau:
Kích đúp chậm vào tên dự án trong khung hoa tiêu dự án ở phần trên bên trái của màn hình. Sau đó cho phép Xcode để đổi tên các tập tin
Và
Đổi tên chương trình trong cùng một cách
Đó là tất cả tôi đã làm có lẽ đó bản thân nó là không đủ vì vậy nếu ai đó biết cách thích xin vui lòng cho tôi biết .
Hãy thử một thư mục xây dựng sạch sẽ: Command-Shift-Option-K. Hãy cho tôi biết nếu nó hoạt động và tôi sẽ đăng nó như là một câu trả lời. – Undo
Theo dòng cuối cùng trong câu hỏi đầu tiên của tôi, tôi đã thử và không khắc phục được, tôi đã thử lại để đảm bảo nhưng không thay đổi –
Thử đóng xcode và xóa mọi thứ trong '' '~/Library/Developer/Xcode/DerivedData'' '. Sau đó mở lại xcode. Có lỗi liên kết cố định cho tôi trước đây. Làm sạch thường không đủ. – cypres