2016-06-16 13 views
9

क्या ढांचे का निर्माण करने के लिए उपयोग किए जाने वाले कार्थेज स्विफ्ट संस्करण को बदलना संभव है?बदलें कार्थेज स्विफ्ट संस्करण

मैं अपने प्रोजेक्ट को 3 (एक्सकोड 8 बीटा पर) में माइग्रेट करने की कोशिश कर रहा हूं, और तीसरी पार्टी लाइब्रेरी एकमात्र चीज है जो मेरी परियोजना को संकलित करने से रोकती है। स्विफ्ट 3 के लिए विशिष्ट शाखाओं का उपयोग करते समय, कार्थेज नए स्विफ्ट वाक्यविन्यास के बारे में त्रुटियों को फेंकता है।

किसी भी मदद की सराहना की जाएगी!

उत्तर

19

कार्थेज फ्रेमवर्क बनाने के लिए कमांड लाइन टूल xcodebuild का उपयोग करता है। कमांड लाइन सिस्टम द्वारा प्रयुक्त Xcode के संस्करण उपकरण xcode-select

Usage: xcode-select [options] 

Print or change the path to the active developer directory. This directory 
controls which tools are used for the Xcode command line tools (for example, 
xcodebuild) as well as the BSD development commands (such as cc and make). 

Options: 
    -h, --help     print this help message and exit 
    -p, --print-path   print the path of the active developer directory 
    -s <path>, --switch <path> set the path for the active developer directory 
    --install     open a dialog for installation of the command line developer tools 
    -v, --version    print the xcode-select version 
    -r, --reset     reset to the default command line tools path 

यह डेवलपर SDK निर्देशिका को इंगित करने की जरूरत है द्वारा चयनित मूल्य से निर्धारित होता है, तो आप जहां यह वर्तमान में ओर इशारा करते हुए है की जाँच करने के --print-path उपयोग कर सकते हैं।

xcode-select --print-path 
/Applications/Xcode.app/Contents/Developer 

तो यह सिर्फ sudo xcode-select --switch <path-to-beta-xcode>/Contents/Developer

+1

आप भी इस का उपयोग कर Xcode> Preferences> स्थान, फिर "कमांड लाइन को बदल सकते हैं आप अपने रेपो पर कि इस मुद्दे का धागा पालन करना चाहें उपकरण " –

0

वहाँ XCode 8 और टूटी हुई संगतता के बारे में कार्थेज के GitHub पर एक बग रिपोर्ट है चलाने के बदलने के लिए।

https://github.com/Carthage/Carthage/issues/1440

कार्थेज के रेपो में एक अन्य संबंधित सूचना मुद्दा है: https://github.com/Carthage/Carthage/issues/1445

संबंधित मुद्दे