2014-07-08 10 views
7

के साथ एक्सकोड विफल रहा मैंने एक समाधान की तलाश की लेकिन मुझे कुछ भी नहीं मिला। XCode 6 का बीटा 3 मेरा कोड अब और काम नहीं करता है।एक्सकोड कोड 254

While emitting SIL for 'tableView' at /Users/Marco/Desktop/iPrescription/iPrescription/MedicineTableViewController.swift:109:14 :0: error: unable to execute command: Segmentation fault: 11 :0: error: swift frontend command failed due to signal (use -v to see invocation) Command /Applications/Xcode6-Beta3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift failed with exit code 254

मैं प्रोग्रामिंग iOS के लिए नया हूँ और मैं इस समस्या के मूल पाने के लिए क्या करना है पता नहीं है: Xcode मुझे इस त्रुटि देता है। मैं बहुत निराश हूं क्योंकि मुझे नहीं पता कि क्या खोज रहा है।

+0

स्विफ्ट कंपाइलर में एक बग की तरह दिखता है। आपको बीटा 2 पर वापस जाना चाहिए। – trojanfoe

+1

वास्तविक कोड सहायक होगा। यह एक कंपाइलर बग की तरह दिखता है, लेकिन एक कामकाज हो सकता है। – Andy

उत्तर

3

मेरे लिए एक ही समस्या है, लेकिन मेरे मामले में संग्रह दृश्य के साथ। मैंने पाया यह लाइन की वजह से: मेरे ऐप वापस जीवन के लिए फिर से

let cell = collectionView!.dequeueReusableCellWithReuseIdentifier(reuseIdentifier, forIndexPath: indexPath) as CustomCell 

और:

let cell = collectionView?.dequeueReusableCellWithReuseIdentifier(reuseIdentifier, forIndexPath: indexPath) as CustomCell 

मैं बस करने के लिए इसे बदल दिया है। अभी भी कोई विचार नहीं है क्यों।

अद्यतन:

बस उस विधि हस्ताक्षर (आपके मामले में tableView करने के लिए) beta3 और collectionView में बदल खोलने के लिए मजबूर कर देखा:

override func collectionView(collectionView: UICollectionView**!**, cellForItemAtIndexPath indexPath: NSIndexPath!) -> UICollectionViewCell! 

तो हम डेटा स्रोत के तरीकों को ठीक करने और collectionView उपयोग करने की आवश्यकता या तालिका सीधे देखें।

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