I'm trying to build a project on Xcode 8.2.1 but with no success. Getting this error,
clang: error: '-I-' not supported, please use -iquote instead
I'm not able to identify what this error is about. Any help would be appreciated.
More description,
ProcessPCH++
/Users/sanket/Library/Developer/Xcode/DerivedData/Hello-bmfbxswcpcghlpfqacyvwgvzojza/Build/Intermediates/PrecompiledHeaders/Hello-Prefix-ayovgewobfxhbwcxjzlegeqdrxki/Hello-Prefix.pch.pch
Hello/Hello-Prefix.pch normal x86_64 c++
com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/sanket/Desktop/MyProject
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
Related
I am new to iOS development and I am currently playing with Package Managers, in this case I am trying to use Carthage to import Alamofire into my app. I was able to build the application in Xcode and side load it on my device and the application works(Im able to call an API successfully so I know Alamofire is being used correctly), But when I commit my project to GitHub and build it in Visual Studio App Center the build fails on the "CompileSwift normal arm64" command. Has anyone seen this issue before or know if there is a solution?
Is it possible that Carthage is not compatible with VS App Center? or would that not matter because Carthage is only to essentially download the Framework.
`CompileSwift normal arm64
cd /Users/vsts/agent/2.140.0/work/1/s
/Applications/Xcode_9.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -emit-bc /Users/vsts/agent/2.140.0/work/1/s/TaskManager/ViewController.swift /Users/vsts/agent/2.140.0/work/1/s/TaskManager/AppDelegate.swift -target arm64-apple-ios11.4 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode_9.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk -I /Users/vsts/Library/Developer/Xcode/DerivedData/TaskManager-hgihqzndqrcqcahjnxfhdrfxlmns/Build/Intermediates.noindex/ArchiveIntermediates/TaskManager/BuildProductsPath/Release-iphoneos -F /Users/vsts/Library/Developer/Xcode/DerivedData/TaskManager-hgihqzndqrcqcahjnxfhdrfxlmns/Build/Intermediates.noindex/ArchiveIntermediates/TaskManager/BuildProductsPath/Release-iphoneos -F /Users/vsts/agent/2.140.0/work/1/s -g -module-cache-path /Users/vsts/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 4 -O -serialize-debugging-options -Xcc -I/Users/vsts/Library/De...
/Users/vsts/agent/2.140.0/work/1/s/TaskManager/ViewController.swift:10:8: error: module compiled with Swift 4.2 cannot be imported in Swift 4.1.2: /Users/vsts/agent/2.140.0/work/1/s/Alamofire.framework/Modules/Alamofire.swiftmodule/arm64.swiftmodule
import Alamofire
^
** ARCHIVE FAILED **
The following build commands failed:
CompileSwift normal arm64
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
[error]Error: /usr/bin/xcodebuild failed with return code: 65
[section]Finishing: Xcode build (signed)
[section]Starting: Xcode build (signed)`
I test my app using react-native run-ios in the simulator, however today I just get a random error and have no clue on how to approach it since I com from web dev and have no clue on how to setup projects in xCode (well I have some idea but I don't want to further break the project)
This is the error I am getting:
libtool /Users/waltermonecke/Code_Projects/reactNative/lisdo/ios/build/Build/Products/Debug-iphonesimulator/libTPSStripe.a normal x86_64
cd /Users/waltermonecke/Code_Projects/reactNative/lisdo/node_modules/tipsi-stripe/ios
export IPHONEOS_DEPLOYMENT_TARGET=10.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/ImageMagick/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -L/Users/waltermonecke/Code_Projects/reactNative/lisdo/ios/build/Build/Products/Debug-iphonesimulator -filelist /Users/waltermonecke/Code_Projects/reactNative/lisdo/ios/build/Build/Intermediates/TPSStripe.build/Debug-iphonesimulator/TPSStripe.build/Objects-normal/x86_64/TPSStripe.LinkFileList -lRCTPushNotification -weak_framework Stripe -framework PassKit -o /Users/waltermonecke/Code_Projects/reactNative/lisdo/ios/build/Build/Products/Debug-iphonesimulator/libTPSStripe.a
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lRCTPushNotification
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lRCTPushNotification is not an object file (not allowed in a library)
** BUILD FAILED **
The following commands produced analyzer issues:
Analyze /Users/waltermonecke/Code_Projects/reactNative/lisdo/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
Analyze /Users/waltermonecke/Code_Projects/reactNative/lisdo/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
(2 commands with analyzer issues)
The following build commands failed:
Libtool /Users/waltermonecke/Code_Projects/reactNative/lisdo/ios/build/Build/Products/Debug-iphonesimulator/libTPSStripe.a normal x86_64
(1 failure)
I guess this is the relevant part can't locate file for: -lRCTPushNotification, but I dont know how to properly remove the reference to that package.
Any help is welcome!
I'm trying to compile VLCKit on Mac OS 10.11 following this wiki : https://wiki.videolan.org/VLCKit/
I have clone git://git.videolan.org/vlc-bindings/VLCKit.git then open VLCKit.xcodeproj in Xcode 8.0 and finally run "Build Everything".
But build failed with thoses issues :
'checking for C/C++ restrict keyword... __restrict
checking whether xcrun clang++ supports C++11 features by default... no
checking whether xcrun clang++ supports C++11 features with -std=c++11... no
checking whether xcrun clang++ supports C++11 features with -std=c++0x... no
configure: error: *** A compiler with support for C++11 language features is required.
Command /bin/sh failed with exit code 1
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution configure build/VLCKit.build/Debug/Run\ VLC\ configure.build/Script-63FFDBCD0D2AE2AE0092FC96.sh
(1 failure)
make: *** [build/Debug/VLCKit.framework] Error 65'
I had the same issue, but I was able to get passed these checks by adding std=c++11 -stdlib=libc++ to the CXX flags exported in Configure.sh, so that section looks like this:
if test $arch = "x86_64"; then
export CFLAGS="-m64 -arch x86_64 $optim"
export CXXFLAGS="-m64 -arch x86_64 -std=c++11 -stdlib=libc++ $optim"
export OBJCFLAGS="-m64 -arch x86_64 $optim"
export CPPFLAGS="-m64 -arch x86_64 $optim"
this_args="--build=x86_64-apple-darwin15 --with-contrib=$VLC_SRC_DIR/contrib/x86_64-apple-darwin15 $this_args"
export PKG_CONFIG_PATH=$VLC_SRC_DIR/contrib/x86_64-apple-darwin11/lib/pkgconfig
fi
Hope that helps!
I'm trying to build up my App for testing on Device.
I'm facing an huge problem with the debugging:
The device is registered
I'm using a Dev Provisioning Profile
If I build and publish "release" no problem occurs
If I build Debug / iPhone I get:
/---PATH----/MTOUCH: Error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com (MT4109) (---PROJECT NAME---)
Taking a closer look to the logs:
Process exited with code 1, command:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -gdwarf-2 -I/Library/Frameworks/Xamarin.iOS.framework/Versions/9.0.1.29/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -Qunused-arguments -miphoneos-version-min=8.0 -arch arm64 -c -DDEBUG -o /---PATH---/obj/iPhone/Debug/mtouch-cache/registrar.arm64.o -Wno-receiver-forward-class -x objective-c++ -fno-caret-diagnostics -fno-diagnostics-fixit-info -
<stdin>:3804:35: error: type name does not allow storage class to be specified
<stdin>:3804:32: warning: declaration does not declare anything [-Wmissing-declarations]
Any suggestion?
If someone stumbles over this problem as I did:
Try adding --noregistrar to the additional mtouch arguments in the project's options (iPhone Build page).
I was working on a project and all were going well until I decide to clean my project.
The following errors appears only when I run my app on simulator (working fine on a real device) :
Libtool /Users/Yaman/Library/Developer/Xcode/DerivedData/Homeless-gujyzhsiwenufvedlinbbtrizcpd/Build/Products/Debug-iphonesimulator/libShareKit.a normal i386
cd "/Users/Yaman/Documents/iOS - App à vendre/Homeless/Submodules/ShareKit"
setenv IPHONEOS_DEPLOYMENT_TARGET 4.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only i386 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -L/Users/Yaman/Library/Developer/Xcode/DerivedData/Homeless-gujyzhsiwenufvedlinbbtrizcpd/Build/Products/Debug-iphonesimulator -filelist "/Users/Yaman/Library/Developer/Xcode/DerivedData/Homeless-gujyzhsiwenufvedlinbbtrizcpd/Build/Intermediates/ShareKit.build/Debug-iphonesimulator/Static Library.build/Objects-normal/i386/ShareKit.LinkFileList" -ObjC -all_load -lCopy -lDelicious -lDiigo -lEmail "-lEvernote SDK" -lEvernote -lFacebook "-lFlickr SDK" -lFlickr -lFoursquareV2 "-lGoogle Reader" -lInstagram -lInstapaper -lJSONKit -lKippt -lLinkedIn -lLogout -lOAuth "-lOpen in Safari" -lPinboard -lPrint -lReachability "-lRead It Later" "-lSave to Album" -lShareKitCore "-lSina Weibo" -lSSKeyChain "-lText Message" -lTumblr -lTwitter -lVKontakte -o /Users/Yaman/Library/Developer/Xcode/DerivedData/Homeless-gujyzhsiwenufvedlinbbtrizcpd/Build/Products/Debug-iphonesimulator/libShareKit.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: -dynamic not specified, -all_load invalid
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: -dynamic not specified the following flags are invalid: -ObjC
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lReachability
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lReachability is not an object file (not allowed in a library)
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1
I got these errors when running command xcodebuild directly from a terminal :
** BUILD FAILED **
The following build commands failed:
Libtool "build/ShareKit.build/Release-iphoneos/Static Library.build/Objects-normal/armv7/libShareKit.a" normal armv7
Libtool "build/ShareKit.build/Release-iphoneos/Static Library.build/Objects-normal/armv7s/libShareKit.a" normal armv7s
(2 failures)
Someone can figure out what's happened here ?
I just got this error. The project works very well, you add a new lib and BAM, build failed.
I my case, Xcode5 had added some special \" around my header search paths values.
Like that :
\"$(SRCROOT)/myproject/Libraries/lib\"
Quite impossible to find out, but when spending hours to find where is the problem, I finally tried to change to
$(SRCROOT)/myproject/Libraries/lib
And the build success came back... thanks Xcode!
The first error note says that compiling ShareKit failed, because Reachability is missing. I'd propose that you check your compiling environment has latest (or compatible) version of the library.
That's why libShareKit.a mentioned in last error note is missing and compiling your app failed. Try to compiling ShareKit alone and when it's done, try again the whole app.