Build Failed after importing ios module in Appcelerator App - titanium

I am creating FBAudienceNetwork.framework module for iOS in appcelerator then using it in mobile App but getting compilation error for app.
I have created a module in appcelerator studio, i have put the FBAudienceNetwork.framework in module inside ios/patform folder, the module built successfully.
Then i am importing that module in appcelerator project while compiling it shows an error.
I have also follow this link : https://docs.axway.com/bundle/Titanium_SDK_allOS_en/page/ios_module_64-bit_support.html
The command lists the required architectures.
xcrun lipo -info libcom.usp.fbaudience.a
Architectures in the fat file: libcom.usp.fbaudience.a are: armv7 i386 x86_64 arm64
Xcode Version : 10.1
Titanium SDK : 8.0.0.GA
var facebookAudienceNetwork = require('com.usp.fbaudiancenetwork');
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld /Users/uspapps4/Documents/workspace2/fbAudienceNetworkDemo/build/iphone/build/Intermediates/fbAudienceNetworkDemo.build/Debug-iphoneos/fbAudienceNetworkDemo.build/Objects-normal/armv7/fbAudienceNetworkDemo normal armv7.

Related

Bare react native project does not run on ios simulator

I am trying to run an a fresh react native project using react native cli but I get the following error:
2022-07-22 09:31:45.006 xcodebuild[96346:8084479] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-07-22 09:31:45.006 xcodebuild[96346:8084479] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
** BUILD FAILED **
The following build commands failed:
CompileC /Users/ramiel/Library/Developer/Xcode/DerivedData/AwesomeProject-dcybszwqvhaflbhahawancnnffvo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/SysUio.o /Users/ramiel/Desktop/Typescript/react\ native/AwesomeProject/ios/Pods/RCT-Folly/folly/portability/SysUio.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'YogaKit' from project 'Pods')
(2 failures)
I appreciate any help
install the cocoapods for ios using the command sudo gem install cocoapods
after installation navigate to the ios folder and run pod install. then you can run your project using npx react-native run-ios
For some reason. I created a new typescript project and it worked :)

XCode IOS project not linking to Expo files

I am working on an Expo app that needs native functionality, so I am running expo run:ios. Everytime I run this however, it gives me an error saying this:
❌ Undefined symbols for architecture x86_64
┌─ Symbol: _AVMetadataObjectTypeCodabarCode
└─ Referenced from: l001 in EXBarCodeScanner(EXBarCodeScanner.o)
❌ ld: symbol(s) not found for architecture x86_64
❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)
When I try removing the expo-barcode-scanner library, the project builds and runs, but in expo it says "expo-asset could not be found within the project." Does anyone know what might be causing this?
The only way that you can fix it is to update your Xcode to 13.3
Here's the xcode 13.3 image information: Apple Website
You can use the "image" property in your build profile.

react-native vector icons build failed

Working fine with android but build failed on iOS with error :
error: /Users/Aftab/repos/mobile/node_modules/#ant-design/icons-react-native/fonts/antoutline.ttf: No such file or directory (in target 'CareerPaths' from project 'CareerPaths')

React Native build fails in terminal but runs fine in Xcode

When i try to run my react-native build in the terminal i get this error:
clang-4.0: error: no such file or directory: '/Users/myname/project-x/ios/build/ProjectX/Index/DataStore'
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening ProjectX.xcworkspace
failed build-command info:
The following build commands failed:
CompileC /Users/danstein/project-x/ios/build/ProjectX/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/double-conversion.build/Objects-normal/x86_64/diy-fp.o /Users/myname/project-x/node_modules/react-native/third-party/double-conversion-1.1.6/src/diy-fp.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/danstein/project-x/ios/build/ProjectX/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/double-conversion.build/Objects-normal/x86_64/bignum-dtoa.o /Users/myname/project-x/node_modules/react-native/third-party/double-conversion-1.1.6/src/bignum-dtoa.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/danstein/project-x/ios/build/ProjectX/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/double-conversion.build/Objects-normal/x86_64/cached-powers.o /Users/myname/project-x/node_modules/react-native/third-party/double-conversion-1.1.6/src/cached-powers.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/danstein/project-x/ios/build/ProjectX/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/double-conversion.build/Objects-normal/x86_64/bignum.o /Users/myname/project-x/node_modules/react-native/third-party/double-conversion-1.1.6/src/bignum.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(4 failures)
This is working for the other guy on my team. And everything builds and runs fine in Xcode.
I sometimes have problems running create-react-app because I use an anaconda python installation, so I have to 'kill HOST' but this doesn't solve this problem
go to your AppDelegate.m file and change jsCodeLocation.

library not found for -lFlurry_6.0.0 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have earlier created an 32 bit app in Xcode. Now I updated XCode to 6.1 iOS 8.1. Additionally I used Flurry SDK 4.2.3 API earlier, now I downloaded flurry sdk 6.0.0 compatible with xcode 6.1.
But, now after importing this SDK into Xcode project the below error is displayed.
library not found for -lFlurry_6.0.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
libflurry library is already there in:
project>>general>>libraries section
What should I do to resolve it ?