ios - transmit auto sync on save raw
Apple Mach-O Linker command failed (11)
Solved - Best Way
pod deintegrate pod install
Open xcworkspace and clean it before running.
Following steps helped me to get rid of this problem:
- Go to project path and remove Pods folder and Podfile.lock file.
- Reinstall pods again using "pod install" command.
- Open xcworkspace and clean it before running.
Hope it will save someone's time like it did for me.
I am using XCode for compiling ionic 3 app.
cli packages: (/usr/local/lib/node_modules) @ionic/cli-utils : 1.10.1 ionic (Ionic CLI) : 3.10.1 global packages: Cordova CLI : 7.0.1 local packages: @ionic/app-scripts : 2.1.4 Cordova Platforms : android 6.2.3 ios 4.5.0 Ionic Framework : ionic-angular 3.6.0 System: ios-sim : 5.0.8 Node : v8.4.0 npm : 5.4.0 OS : OS X Yosemite Xcode : Xcode 7.2 Build version 7C68
There was not write permission in most of the file of ios, which was main issue.
I just changed the permission of ios file and got issue resolved by using command.
sudo chmod -R 775 platforms/ios/
I got same error like duplication of "variable name". You need to check all variable and function name for all .m file and make sure it's not same in any other file.Then clean and build.
It's working for me.
I had a similar problem and I just had to make sure to enable the "copy if necessary" checkbox when adding the framework into the project. Reference only didn't work for me...
I have no clue why the error occurred in my case, I was reusing some code from another project I created a while ago and after I adapted the code, then I always got the "Apple Mach -O Linker command failed"- Message. My best guess is, that it happened because I created/deleted some files from the project.
The thing that solved it for me was this:
- Create a new Project
- copy all the necessary files from the old project to the new one (Drag and Drop, don't forget the "Copy if needed" Checkbox)
- Build and see that it works
Sounds stupid and I have no idea why, but it worked.
Make sure you open the
.xcworkspace file rather than the project file (
.xcodeproj) when working with pods. That should solve the issue with linking.
Some times you need just clean build. It helped me. To clean build go Product -> Clean
There are several cases that cause this issue. At the moment, this question has no any accepted answer and also I found another solution for the same issue, I am posting my answer/experience here.
In you application, go to Target -> Build Settings, then you will find following attributes.
Set values for those as NO, then clean and build the project.
the solution for me was open the .xcworkspace file insted of .xcodeproj located inside my '/platforms/ios' folder.