Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
1
Question by Alex_lemes · Sep 26, 2018 at 02:21 PM · iosxcode

xcode - linker command failed with exit code 1

Hello,

I keep getting this error every time I try to build my iOS game with Xcode(10) - Unity 2018, done some research but have yet to find a solution/reason for the issue. Anyone else has issue or any ideas?

ERROR: "linker command failed with exit code 1"

Thanks!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

8 Replies

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by Alex_lemes · Sep 28, 2018 at 02:28 PM

after lots more digging i found the solution:

SOLUTION:

open xcworkspace and NOT xcodeproj

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image dbarile · Dec 21, 2018 at 05:54 AM 0
Share

I'm having the same issue. I'm building to an iPad 3rd gen on iOS 9.3.5 from a $$anonymous$$acBook running $$anonymous$$ojave. I was not able to find any xcworkspace file either. Any help would be appreciated.

avatar image Check_2015 · Mar 17, 2019 at 01:55 AM 0
Share

Thanks so much! Saved my day :D

avatar image Jaimieself · Aug 16, 2019 at 10:32 PM 0
Share

Where is xcworkspace, i cannot find it anywhere. Or is this infomation out of date now?

avatar image Check_2015 Jaimieself · Aug 17, 2019 at 07:21 AM 0
Share

The file is in the same folder as the .xcproject file

avatar image
1

Answer by $$anonymous$$ · Oct 27, 2018 at 05:44 AM

This could be happen if you try to run your project in simulator instead of real device. @garv3

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image nicloay · Nov 27, 2018 at 10:26 AM 0
Share

Best answer. In my case I found that after I inserted 3d party package I got the same problem. And was need to remove Subset from api compatibility level.

avatar image stitof1989 · Feb 23, 2019 at 12:27 AM 0
Share

the same thing i don't find the xcworkspace file

avatar image
0

Answer by garv3 · Oct 10, 2018 at 11:18 AM

There is no xcworkspace in my project folder.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Alex_lemes · Oct 20, 2018 at 03:06 PM 0
Share

are u sure? it's not exactly called xcworkspace, can't remember off the top of my head but it's like .workspace or something.

$$anonymous$$aybe share a screenshot if it's still an issue.

avatar image tonOnWu Alex_lemes · Nov 17, 2018 at 12:43 PM 0
Share

Hi guys. Still on this issue. $$anonymous$$y project doesn't generate a workspace file. I tried to attach a print screen here but it didn't work. But, believe me. I know what kind of files you mentioned and it is not here. I must add that everything runs perfectly on my devices when I compile the project on Xcode. The problem is specifically with the archiving process. I really hope you can help me. $$anonymous$$ore than 24 hours with this problem. Thanks

avatar image Alex_lemes tonOnWu · Nov 17, 2018 at 01:55 PM 0
Share

hay, i don't have much knowledge, only that i had the xcworkspace file and i was able to open that ins$$anonymous$$d which fixed the issue. sorry

avatar image
0

Answer by AsifNaeem · Nov 12, 2018 at 03:04 PM

I am also facing same problem. But it was working fine in older version of xcode. That happen after update to Mojave and xcode 10. My error is . .

Ld /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName normal armv7 (in target: Unity-iPhone) cd /Users/asif/Documents/New\ Unity\ Project/IOS\ Build export IPHONEOS_DEPLOYMENT_TARGET=8.0 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk -L/Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Products/ReleaseForRunning-iphoneos -L/Users/asif/Documents/New\ Unity\ Project/IOS\ Build -L/Users/asif/Documents/New\ Unity\ Project/IOS\ Build/Libraries -F/Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Products/ReleaseForRunning-iphoneos -F/Users/asif/Documents/New\ Unity\ Project/IOS\ Build/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks -F/Users/asif/Documents/New\ Unity\ Project/IOS\ Build/Frameworks/Plugins/iOS -F/Users/asif/Documents/New\ Unity\ Project/IOS\ Build/UnityAds -filelist /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName.LinkFileList -Xlinker -map -Xlinker /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/ProductName-LinkMap-normal-armv7.txt -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName_lto.o -fembed-bitcode-marker -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -ObjC -framework AVFoundation -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreMedia -framework CoreMotion -framework CoreTelephony -framework CoreVideo -framework GLKit -framework GoogleMobileAds -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -weak_framework AdSupport -weak_framework JavaScriptCore -weak_framework SafariServices -weak_framework WebKit -weak_framework CoreMotion -weak-lSystem -framework Security -framework MediaToolbox -liPhone-lib -framework CoreText -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -framework MediaPlayer -framework OpenAL -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -liconv.2 -lil2cpp -weak_framework Metal -framework UnityAds -framework UnityAds -weak_framework AdSupport -framework StoreKit -framework CoreTelephony -lPods-Unity-iPhone -Xlinker -dependency_info -Xlinker /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName_dependency_info.dat -o /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName

duplicate symbol OBJC_CLASS$_UnityAdsUnityWrapperDelegate in: /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/UnityAdsUnityWrapper-b61a3e365e3d94efdf57ab854502e286f0004ed65ee5ff27c27446ef2b86d435.o /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/UnityAdsUnityWrapper-b61a3e365e3d94efdf57ab854502e28603e0b523287a6dc34eab9f1a569a255a.o duplicate symbol OBJC_METACLASS$_UnityAdsUnityWrapperDelegate in: /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/UnityAdsUnityWrapper-b61a3e365e3d94efdf57ab854502e286f0004ed65ee5ff27c27446ef2b86d435.o /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/UnityAdsUnityWrapper-b61a3e365e3d94efdf57ab854502e28603e0b523287a6dc34eab9f1a569a255a.o ld: 2 duplicate symbols for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by tonOnWu · Nov 17, 2018 at 01:53 AM

Hi guys.

I've been researching almost the whole day. Did you find any other solution?

I'm using Unity 2018.2.15.f1. Our App is an ARFoundation project. My Xcode is 10.1 (10B61). Everything works, but when we used Xcode to post our work to Apple Connect we get this error:

linker command failed with exit code 1 (use -v to see invocation) clang

I really appreciate any suggestion.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

196 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

[iOS] Chartboost sdk issue. Undefined symbols for architecture arm64: ... (maybe you meant: _ChartBoostBinding__ 0 Answers

Invalid Image Path - No Image found at the path referenced under key 'CFBundleIcons': AppIcon29x29 3 Answers

PostProcessBuild Check if we append or replace the Xcode Project 1 Answer

Monetization breaks iOS build in XCode. Also breaks Android build. 1 Answer

Xcode 7.2/Unity Linker command error exit code 1 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges