Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 20    Views: 118

stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
07/11/13 06:26 PM (12 years ago)

Apple Mach-0 error

Been away from developing for a while. AM updating an app which just a few screens. Copied the config.txt file and added the new document files and went to run on my phone. Got this error: Apple Mach-o linker error. Linker command failed with exit code 1 (use -v to see invocation) I've looked at other responses to this error. Haven't added any newplugins since the last succesful update. I don't use Scringo and don't even see a BT_Core folder (I haven't re-compiled the app, just copied and pasted the new confg.txt file - don't know if that's a problem). The only red entry I see in the files is mobfox.framework if that can have anything to do with it. Using xcode 4.6.3. and the app is a version 1.5. Any help? Thanks. Steve
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/11/13 06:53 PM (12 years ago)
Hmm - that's probably the most frustrating of all errors - very non-descript and very generic. There's a fair number of things that might cause it. How hard would it be for you to recreate the app in BT 2.0 format?
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
07/11/13 07:10 PM (12 years ago)
I've been away from BT for about 6 months and didn't even know there's a 2.0 I guess if I had to it would take a few days to start from scratch but I'm hoping there's a better way.
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
07/11/13 07:12 PM (12 years ago)
Hey Steve - This happened to me a few weeks ago. It was on an iOS 2.0 app that I was updating; I cleaned the project & tried a few of the options offered in StackOverflow for this issue: http://stackoverflow.com/questions/5329001/apple-mach-o-linker-error-when-compiling-for-device Eventually, I re-downloaded the project. I there were no issues. Not sure if that's a solution, but check out what the S.O. folks offer.
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
07/11/13 07:42 PM (12 years ago)
Dont know if this helps, but the entire error when double clicking on it says: ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/skronwith/Desktop/APPS/skyeventfinder_v15_iOS6 /BT_Objects/TwitterOAuth/SAOAuthTwitterEngine/libOAuth.a for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation)
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
07/11/13 07:43 PM (12 years ago)
Also, it runs on the simulator, not the iphone!
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/11/13 07:47 PM (12 years ago)
Well you've limited it down to Twitter! If I go out on a limb, let me guess that your iPhone is running 6.0? And your simulator is 5.x?
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
07/11/13 07:50 PM (12 years ago)
Both iphone and simulator 6.1 Any ideas as to what can I do to eliminate problem with phone itself?
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
07/11/13 07:51 PM (12 years ago)
Both iphone and simulator 6.1 Any ideas as to what can I do to eliminate problem with phone itself?
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
07/11/13 07:53 PM (12 years ago)
Twitter is not even installed on my iphone. Is that the problem?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/11/13 07:55 PM (12 years ago)
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
07/11/13 08:04 PM (12 years ago)
Fixed problem by taking out armv7s and just leaving in armv7. Hope this doesn't cause other problems down the road. Thanks for your help.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
07/12/13 12:32 AM (12 years ago)
I was just about to give you that answer, and no it won;t cause you any issues unless your going to use another frame work that doesn't have an armv7 slice but wants armv7s. It's a nightmare with closed libraries and that one is the old twitter oauth
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
07/12/13 09:00 AM (12 years ago)
Guys, It seems as if i am having the same error issue but only when I add Scringo to my project. I can figure out where this error is stemming from. Any help would be great.Thanks duplicate symbol _main in: /Users/anthony/Library/Developer/Xcode/DerivedData/binifund-dujlbvermhcfegfczsipopjatrtq/Build/Intermediates/binifund.build/Debug-iphonesimulator/binifund.build/Objects-normal/i386/main-B1523F627B4D117F.o /Users/anthony/Library/Developer/Xcode/DerivedData/binifund-dujlbvermhcfegfczsipopjatrtq/Build/Intermediates/binifund.build/Debug-iphonesimulator/binifund.build/Objects-normal/i386/main-F30A43B7D608252F.o ld: 1 duplicate symbol for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
07/12/13 09:14 AM (12 years ago)
Delete your derived data and reset simulator. Duplicate symbol is 2 classes that are the same if scringo is the only framework it can't be that as everyone would have a duplicate error
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
07/12/13 09:19 AM (12 years ago)
Kittsy, Sorry but where would i delete my derived data. I cant even get my simulator to open to reset it as it fails buiid.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
07/12/13 09:29 AM (12 years ago)
to reset simulator click on it on the dock. in the toolbar at the top click ios simulator and click reset contents and settings. to delete derived data go to xcode preferences locations find the arrow in the circle by derived data delete the derived data folder
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
07/12/13 09:49 AM (12 years ago)
Deleted it..Same error. I backtracked and dug into the folder and there is not a dup file. I am so confused
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
07/12/13 10:08 AM (12 years ago)
Kittsy, It was the ScringoSample File that was throwing it into a duplicate error. Thanks for your help.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
07/12/13 10:12 AM (12 years ago)
It's my experience that BT 2.0 ios programs that I made a few months ago, need to be re-downloaded and rebuilt to get them to compile and run now. I found it easier to do that than figure out why they wouldn't compile!
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
07/12/13 10:17 AM (12 years ago)
ah you copied the whole file in, well the clues are there with the duplicate, problem solved
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.