I am trying to add socialSharing to my IBM mobileFirst hybrid app.. Added the 'socialsharing.h','socialsharing.m' file but I get an error doing the Xcodebuild (cli)
The error is:
The following build commands failed:
CompileC /Users/Pre/Library/Developer/Xcode/DerivedData/RandstadJobs-awbivrwbculwbcbkdgifcfkukrfk/Build/Intermediates/ArchiveIntermediates/RandstadMobileRandstadRecruiterIphone/IntermediateBuildFilesPath/RandstadJobs.build/Distribution-iphoneos/RandstadMobileRandstadRecruiterIphone.build/Objects-normal/armv7/SocialSharing.o Classes/SocialSharing.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
xcodebuild exited with code: 65
[17:23:39] 'build-iphone-no-deps' errored after 14 s
[17:23:39] RunCommandError: xcodebuild did not complete [code, signal]: 65,
at _doneHandler (/Users/Pre/Documents/Development/mymobile/dev/Recruiter/build/node_modules/build-common/tasks.js:319:19)
at ChildProcess. (/Users/Prem/Documents/Development/mymobile/dev/Recruiter/build/node_modules/build-common/tasks.js:300:12)
at ChildProcess.emit (events.js:110:17)
at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
[17:23:39] 'build-apps' errored after 42 s
[17:23:39] Error in plugin 'run-sequence(build-iphone-no-deps)'
Message:
build-iphone-no-deps callback
I am using Xcode v7.3 and IBM mobile first 7.1
Can you please provide some hints on how to fix this issue
Thanks
You can MobileFirst-related instructions here: How we can implement add to any(Social networking) in MobileFirst
Xcode-wise make sure you did not forget to add the following frameworks:
MessageUI.framework
Social.framework
Try cleaning up your derived data.
Related
I'm using Xcode 12.4 on Catalina 10.15.7 intel based chip. I created a sample react native project with this 'https://reactnative.dev/docs/environment-setup' and it build and ran perfectly.
Now after further working on the project I installed react native navigation and stack navigator and styled components and vector icon dependencies. Now I run into this issue. Plz help me to resolve this. Thanks.
error on Xcode build
ld: warning: directory not found for option '-L-L/Users/ahyanawaz/Library/Developer/Xcode/DerivedData/Store-bekhqxqflgsqtyheijdxkrbwrksk/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket'
ld: library not found for -lCocoaAsyncSocket
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Maybe try npm install or yarn then cd ios && pod install
I've been unable to run my React Native project since Xcode updated to 12.5. I have a feeling the problem is with Flipper, but when I comment out Flipper from my Podfile, I get similar errors for other modules. Here is the error I get with Flipper installed:
** BUILD FAILED **
The following build commands failed:
CompileC /Users/mohammedibrahim/Library/Developer/Xcode/DerivedData/DinDin-cpajpwxpvpxihbgmxeemayoewtno/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper.build/Objects-normal/x86_64/FlipperRSocketResponder.o /Users/mohammedibrahim/Documents/code/dindin/ios/Pods/Flipper/xplat/Flipper/FlipperRSocketResponder.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
I know this question has been asked before, but none of the solutions provided out there worked for me.
I've cloned nextcloud-ios app, where dependancies are managed with carthage. When I try to build the realm-cocoa dependancy with carthage build realm-cocoa --platform ios --no-use-binaries --cache-builds I got build failed message:
*** No cache found for realm-cocoa, building with all downstream dependencies
*** xcodebuild output can be found in /var/folders/60/rmt9jlwd01l3h3srvjnx7r7w0000gn/T/carthage-xcodebuild.u6zLJP.log
*** Building scheme "Realm" in Realm.xcworkspace
*** Building scheme "RealmSwift" in Realm.xcworkspace
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -workspace /Users/manishkungwani/repos/brilcloud-ios/Carthage/Checkouts/realm-cocoa/Carthage/Realm.xcworkspace -scheme RealmSwift -configuration Release -derivedDataPath /Users/manishkungwani/Library/Caches/org.carthage.CarthageKit/DerivedData/10.3_10G8/realm-cocoa/v3.13.1 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/60/rmt9jlwd01l3h3srvjnx7r7w0000gn/T/realm-cocoa SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/manishkungwani/repos/brilcloud-ios/Carthage/Checkouts/realm-cocoa)
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/60/rmt9jlwd01l3h3srvjnx7r7w0000gn/T/carthage-xcodebuild.u6zLJP.log
I've two version of xcode on my system: 11.4 and 10.3, and tried every possible solutions like this, tried switching command line tools to xcode 10.3, but no luck. Please help.
It is a test-drive example "https://flutter.io/get-started/test-drive/#terminal"
I have got the following error, please comment how to resolve this issue.
Xcode's output:
↳
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
clang-3.5: error: unknown argument: '-gmodules'
clang-3.5: error: unknown argument: '-fbuild-session-file=/Users/nelson/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation'
clang-3.5: error: no such file or directory: '/Users/nelson/Library/Developer/Xcode/DerivedData/Runner-ctvpprsqskddfxbtqtsepwpaebqm/Index/DataStore'
clang-3.5: error: option '-fmodules-validate-once-per-build-session' requires '-fbuild-session-timestamp=<seconds since Epoch>'
Command /usr/local/bin/clang-omp failed with exit code 1
clang-3.5: error: unknown argument: '-gmodules'
clang-3.5: error: unknown argument: '-fbuild-session-file=/Users/nelson/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation'
clang-3.5: error: no such file or directory: '/Users/nelson/Library/Developer/Xcode/DerivedData/Runner-ctvpprsqskddfxbtqtsepwpaebqm/Index/DataStore'
clang-3.5: error: option '-fmodules-validate-once-per-build-session' requires '-fbuild-session-timestamp=<seconds since Epoch>'
Command /usr/local/bin/clang-omp failed with exit code 1
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
error: the following command failed with exit code 1 but produced no further output
CompileC /Users/nelson/Library/Developer/Xcode/DerivedData/Runner-ctvpprsqskddfxbtqtsepwpaebqm/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner_vers.o /Users/nelson/Library/Developer/Xcode/DerivedData/Runner-ctvpprsqskddfxbtqtsepwpaebqm/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/DerivedSources/Runner_vers.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
clang-3.5: error: unknown argument: '-gmodules'
clang-3.5: error: unknown argument: '-fbuild-session-file=/Users/nelson/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation'
clang-3.5: error: no such file or directory: '/Users/nelson/Library/Developer/Xcode/DerivedData/Runner-ctvpprsqskddfxbtqtsepwpaebqm/Index/DataStore'
clang-3.5: error: option '-fmodules-validate-once-per-build-session' requires '-fbuild-session-timestamp=<seconds since Epoch>'
Command /usr/local/bin/clang-omp failed with exit code 1
clang-3.5: error: unknown argument: '-gmodules'
clang-3.5: error: unknown argument: '-fbuild-session-file=/Users/nelson/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation'
clang-3.5: error: no such file or directory: '/Users/nelson/Library/Developer/Xcode/DerivedData/Runner-ctvpprsqskddfxbtqtsepwpaebqm/Index/DataStore'
clang-3.5: error: option '-fmodules-validate-once-per-build-session' requires '-fbuild-session-timestamp=<seconds since Epoch>'
Command /usr/local/bin/clang-omp failed with exit code 1
Could not build the application for the simulator.
Error launching application on iPhone 7 Plus.
I have resolved the issue as the following:
If you look at the question carefully, it triggered an outdated version of clang 3.5, I uninstalled an outdated version and installed a new one.
remove clang-omp from os x
$ brew uninstall clang-omp
After uninstall clang-omp, flutter installer required to update to the latest version. Actually, I did the update before but I did it again.
$ flutter upgrade
I try to run flutter again but it cannot be compiled. It was missing clang-omp
$ flutter run
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
error: can't exec '/usr/local/bin/clang-omp' (No such file or directory)
Command /usr/local/bin/clang-omp failed with exit code 71
error: can't exec '/usr/local/bin/clang-omp' (No such file or directory)
Command /usr/local/bin/clang-omp failed with exit code 71
Because it required an updated version of clang during compilation. I installed llvm
$ brew install llvm
and update the PATH accordingly.
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.bash_profile
Compile the application again, it was compiled successfully.
$ flutter run
Launching lib/main.dart on iPhone 7 Plus in debug mode...
Starting Xcode build...
├─Assembling Flutter resources... 1.1s
└─Compiling, linking and signing... 8.6s
Xcode build done. 11.3s
Syncing files to device iPhone 7 Plus... 3.9s
🔥 To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
An Observatory debugger and profiler on iPhone 7 Plus is available at: http://127.0.0.1:8100/
For a more detailed help message, press "h". To quit, press "q".
Initializing hot reload...
Reloaded 0 of 391 libraries in 486ms.
I have been facing an issue that fails to build Alamofire using Carthage.
My environment is as follows :
OSX 10.10.5
Xcode 6.4
Also 7.0 and 7.1 are already installed.
Carthage 0.9.3
Trying to install Alamofire 1.3.1 (latest Swift 1.2 release)
I tried the command below then error occurs.
$ echo 'github "Alamofire/Alamofire" "1.3.1"' > Cartfile ; carthage update --platform ios
*** Cloning Alamofire
*** Checking out Alamofire at "1.3.1"
*** xcodebuild output can be found in /var/folders/ch/jcgf09f15hl391jn849d5yr80000gn/T/carthage-xcodebuild.ZM1b0b.log
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace
** BUILD FAILED **
The following build commands failed:
Ld /Users/username/Library/Developer/Xcode/DerivedData/Alamofire-fmnpbxqgrcncdhbtipavvywlxagy/Build/Intermediates/Alamofire.build/Release-iphoneos/Alamofire\ iOS.build/Objects-normal/arm64/Alamofire normal arm64
(1 failure)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
A shell task failed with exit code 65:
** BUILD FAILED **
The following build commands failed:
Ld /Users/username/Library/Developer/Xcode/DerivedData/Alamofire-fmnpbxqgrcncdhbtipavvywlxagy/Build/Intermediates/Alamofire.build/Release-iphoneos/Alamofire\ iOS.build/Objects-normal/arm64/Alamofire normal arm64
(1 failure)
Then I tried to build using Xcode.
Open Alamofire.xcworkspace and hit Cmd+B then fails with error below :
Xcode error image
I have never seen the warning Unable to find swiftCore; please set SWIFT_LIBRARY_PATH (currentry '') to the folder containing swiftCore
I think that this warning relates to the issue, but I don't know how to solve this one...
Are there any solutions?