I m using starcore_for_ios to run python scripts.
What i m doing is:
flutter clean
export STARCORE_PATH='/Users/brijeshlakkad'
export STARCORE_PYTHONVERSION='3.6'
export STARCORE_PYTHONLIBRARY='star_python36,python3.6m'
flutter build ios --no-codesign
and i am getting this error:
when i run flutter build ios --no-codesign
Xcode's output:
↳
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release ===
ld: warning: directory not found for option
'-L/Users/brijeshlakkad/starcore_for_ios/python.files/python-3.6'
ld: library not found for -lpython3.6m
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
ld: warning: directory not found for option
'-L/Users/brijeshlakkad/starcore_for_ios/python.files/python-3.6'
ld: library not found for -lpython3.6m
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Encountered error while building for device.
2.9s
Python version: _3.6.5_1_
flutter version: 1.0.0
What i have done:
1. Build Active Architecture Only : YES
and
2. Targets >> Build Settings >> Linking >> Other Linker Flags: $(inherited)
As you can see error below
Related
I recently updated a React Native project to version 0.59, and the built-in AsyncStorage is now deprecated. So I installed the #react-native-community/react-native-async-storage package instead as advised, and linked the packages by running react-native link #react-native-community/async-storage.
The build now succeeds when running it in Xcode locally. However, when I try to run the build in my CI pipeline in Azure DevOps, it fails during linking:
# ...
▸ Compiling main.m
▸ Linking MyApp
⚠️ ld: directory not found for option '-L/Users/vsts/agent/2.149.2/work/1/s/ios/MyApp/System/Library/Frameworks'
❌ ld: library not found for -lRNCAsyncStorage
❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)
▸ Linking MyApp
⚠️ ld: directory not found for option '-L/Users/vsts/agent/2.149.2/work/1/s/ios/MyApp/System/Library/Frameworks'
❌ ld: library not found for -lRNCAsyncStorage
❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld /Users/vsts/Library/Developer/Xcode/DerivedData/MyApp-asjjausbybqgpsdjodrbvoyzaeqx/Build/Intermediates.noindex/MyApp.build/BetaRelease-iphoneos/MyApp.build/Objects-normal/armv7/MyApp normal armv7
Ld /Users/vsts/Library/Developer/Xcode/DerivedData/MyApp-asjjausbybqgpsdjodrbvoyzaeqx/Build/Intermediates.noindex/MyApp.build/BetaRelease-iphoneos/MyApp.build/Objects-normal/arm64/MyApp normal arm64
(2 failures)
##[error]Error: /usr/bin/xcodebuild failed with return code: 65
##[section]Finishing: Xcode build, sign and export
Further up it does look like it has been built:
# ...
▸ Building RNCAsyncStorage/RNCAsyncStorage [(Release)]
▸ Check Dependencies
▸ Building library libRNCAsyncStorage.a
▸ Building library libRNCAsyncStorage.a
▸ Copying RNCAsyncStorage.h
▸ Copying RNCAsyncStorageDelegate.h
# ...
Any ideas what might cause this?
Try setting the Deployment Target to 11.0 in Build Settings / Deployment / iOS Deployment Target.
What might be happening
I was having the exact same issue with a different library and this worked for me.
Adding this ${PODS_CONFIGURATION_BUILD_DIR}/RNCAsyncStorage to Library Search Paths worked for me.
Receiving the following error when doing a
tns run -v ios
(mac is running High Sierra and xcode is current, certificates are in place, etc). any assistance would be greatly appreciated. Here the error:
`Building project...
Xcode build...
=== BUILD TARGET HelloWorld OF PROJECT HelloWorld WITH CONFIGURATION Debug ===
ld: framework not found FileProvider for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: framework not found FileProvider for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
=== BUILD TARGET HelloWorld OF PROJECT HelloWorld WITH CONFIGURATION Debug ===
error: the following command failed with exit code 1 but produced no further output
Ld build/HelloWorld.build/Debug-iphonesimulator/HelloWorld.build/Objects-normal/x86_64/HelloWorld normal x86_64
** BUILD FAILED **
Unable to apply changes on device: B71912B9-B650-4EBF-AB43-3383136CB95F. Error is: Command xcodebuild failed with exit code 65.
Executing after-watch hook from /Users/XXX/temp/NATIVE/HelloWorld/hooks/after-watch/nativescript-dev-webpack.js`
run tns build ios --clean --log trace first ,if the log trace is related to some plugin, use whose latest version in the package.json file , run npm install, than run tns build ios --clean --log trace again.
if it not work, run tns prepare ios --release and open {app-name}/platforms/ios/{app-name}.xcworkspace file with xcode , try run it, xcode will tell you where is the problem.
I am doing a Release scheme react-native build in Xcode and I get the following error:
ld: warning: directory not found for option '-L/Users/username/Library/Developer/Xcode/DerivedData/ProjectName-qwfopvasfnhysedskapbaefsdwer/Build/Products/Release-iphonesimulator/React' ld: library not found for -lReact clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried to add libReact.a in Link Binary With Libraries section in Build Phases but I can't find the library in my workspace.
Thanks in advance
When I run my application on a device, it works perfect, but when I am trying to Archive it to upload to iTunes Connect, i get this error:
Error 1:
ld: can't open output file for writing:
/Users/xxxx/Library/Developer/Xcode/DerivedData/Drikkespillet-bmengfxihzksonhdoqpbllpzpagg/Build/Intermediates/ArchiveIntermediates/Drikkespillet/IntermediateBuildFilesPath/Drikkespillet.build/Release-iphoneos/Drikkespillet.build/Objects-normal/arm64/Drikkespillet,
errno=21 for architecture arm64 clang: error: linker command failed
with exit code 1 (use -v to see invocation)
Error 2:
ld: can't open output file for writing:
/Users/xxxx/Library/Developer/Xcode/DerivedData/Drikkespillet-bmengfxihzksonhdoqpbllpzpagg/Build/Intermediates/ArchiveIntermediates/Drikkespillet/IntermediateBuildFilesPath/Drikkespillet.build/Release-iphoneos/Drikkespillet.build/Objects-normal/armv7/Drikkespillet,
errno=21 for architecture armv7 clang: error: linker command failed
with exit code 1 (use -v to see invocation)
I have tried to remove both of the "Framework Search Paths" and "Library Search Paths". But it still does not work to Archive the project. Any suggestions here?
In Project file go to build setting -->Architectures section --> valid Architectures -- >Delete arm64.
I'm using xcode 5 for my mobile app project. I got this error when I try build the project.
ld: warning: directory not found for option '-L\\\\\\\"/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WorklightSDK\\\\\\\"'
ld: warning: directory not found for option '-L/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WikitudeSDK'
ld: warning: directory not found for option '-F"/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/Frameworks"'
ld: warning: directory not found for option '-F/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WikitudeSDK'
ld: framework not found sqlcipher
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: warning: directory not found for option '-L\\\\\\\"/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WorklightSDK\\\\\\\"'
ld: warning: directory not found for option '-L/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WikitudeSDK'
ld: warning: directory not found for option '-F"/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/Frameworks"'
ld: warning: directory not found for option '-F/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WikitudeSDK'
ld: framework not found sqlcipher
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Why?
This error is because of some missing libraries in your project.
Check in your Build Phases -> Link Binary With Libraries. Any of your framework may had been removed from there.
Add it and Clean and Build your project. It should work fine.
Hope it helps you.
There is another probability that you are using Cocoa Pods to install the library but not open the workspace (*.xcworkspace) file of the project after pod install was successfully executed.