Comments (18)
example add path to Header Search Path
I add below line to my project's "Framework Search Path"
"$(SRCROOT)/../node_modules/aliyun-oss-react-native/ios/AliyunSDK"
Build is pass
from aliyun-oss-react-native.
终于调试出来的。我发现一个问题。
对比Example,我发现在Example中ios下面有一个AliyunOSSiOS.framework的文件夹,这个哪里来的?把他拷贝到我的项目中,然后在xcode添加这个文件夹,神奇的好了。
之前失败,我很确定按照步骤三种的做法,我选择了“select Copy items if needed”
In XCode, in the project navigator, right click Frameworks ➜ Add Files to [your project's name]. Go to node_modules ➜ aliyun-oss-react-native ➜ AliyunSDK. Add AliyunOSSiOS.framework, and select Copy items if needed in the pop-up box.
是不是这里没有生效导致的?XCode Version 9.4.1 (9F2000)
同样法来添加AliyunOSSiOS.framework,
1,添加demo中的AliyunOSSiOS.framework可以正常使用,
2,添加node_modules中的AliyunOSSiOS.framework,报错
ld: framework not found AliyunOSSiOS,
怀疑,发布的包有问题
from aliyun-oss-react-native.
@Timson020 我本地尝试了react-native link aliyun-oss-react-native ,安卓这边编译是OK的,ios的确遇到了你说的这个问题,这个我在跟。
你可以先手动本地添加,是OK的。
from aliyun-oss-react-native.
手动添加,我这边是不行的喔。。。。
我看英文文档再试下
from aliyun-oss-react-native.
@Timson020 第三步的 copy items if need 选项勾选上
from aliyun-oss-react-native.
是的 我已经勾选了
第一步需要勾选么?
from aliyun-oss-react-native.
你xcode的版本是 9.4.1么
from aliyun-oss-react-native.
@Timson020 是的
from aliyun-oss-react-native.
。。。。
我的就是手动加入都不行
按照英文文档的来
from aliyun-oss-react-native.
如果方便的话 可以截图
整个步骤我看下么
from aliyun-oss-react-native.
@Timson020 ,你重新react-native init X ,然后这三步
from aliyun-oss-react-native.
一样的错误
ld: framework not found AliyunOSSiOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)
from aliyun-oss-react-native.
AliyunOSSiOS.framework 这个东西是我们react-native Ios端依赖的原生ios oss sdk,这个东西其实我在项目里已经加入依赖。
from aliyun-oss-react-native.
Any updated news?
from aliyun-oss-react-native.
from aliyun-oss-react-native.
终于调试出来的。我发现一个问题。
对比Example,我发现在Example中ios下面有一个AliyunOSSiOS.framework的文件夹,这个哪里来的?把他拷贝到我的项目中,然后在xcode添加这个文件夹,神奇的好了。之前失败,我很确定按照步骤三种的做法,我选择了“select Copy items if needed”
In XCode, in the project navigator, right click Frameworks ➜ Add Files to [your project's name]. Go to node_modules ➜ aliyun-oss-react-native ➜ AliyunSDK. Add AliyunOSSiOS.framework, and select Copy items if needed in the pop-up box.
是不是这里没有生效导致的?XCode Version 9.4.1 (9F2000)
同样法来添加AliyunOSSiOS.framework,
1,添加demo中的AliyunOSSiOS.framework可以正常使用,
2,添加node_modules中的AliyunOSSiOS.framework,报错ld: framework not found AliyunOSSiOS,
怀疑,发布的包有问题
mac-os: 10.14.2
react-native: 0.57.8
aliyun-oss-react-native: 1.0.0-alpha.7
也是遇到此問題,依 @kala888 方法,終於編譯成功...
from aliyun-oss-react-native.
按 @kala888 方法+添加ipv6那三个包,成功了
from aliyun-oss-react-native.
example add path to Header Search Path
I add below line to my project's "Framework Search Path"
"$(SRCROOT)/../node_modules/aliyun-oss-react-native/ios/AliyunSDK"
Build is pass
thanks, I followed your step and it works!
from aliyun-oss-react-native.
Related Issues (20)
- 请问还会更新吗? HOT 3
- 在pod install的时候 Installing AliyunOSSiOS 一直卡在这边 HOT 2
- com.aliyun.oss.clientError Code=6 HOT 1
- AliyunOSS.asyncDownload 下载文件问题
- android studio下,加载aliyun-oss-react-native包报错
- 请问下这个问题如何解决?Unable to resolve host "xxx.aliyuncs.com": No address associated with hostname
- 调用initWithSecurityToken会卡住js线程吗?
- 安装OSS模块后app launch compile错误 HOT 6
- asyncUpload method can't find the file path HOT 3
- android Q没有适配,上传图片路径会出错 HOT 1
- Attempt to invoke virtual method 'void com.reactlibrary.AliyunUploadManager.asyncUpload(com.facebook.react.bridge.ReactContext, java.lang.String, java.lang.String, java.lang.String, com.facebook.react.bridge.ReadableMap, com.facebook.react.bridge.Promise)' on a null object reference HOT 2
- 模块3年没有更新,已经abandoned? HOT 1
- AliyunUploadManager.java uses unchecked or unsafe operations.
- 公告:这个SDK后面有时间准备重新搞起来了,大家有issue,有PR的欢迎可以提交 HOT 17
- 上传图像在Android emulator运行通畅但在安桌手机上stuck HOT 1
- 请为 Expo 创建一个 Config Plugin
- yarn ios 报错 HOT 5
- 这个项目还在维护嘛?还能使用嘛? HOT 1
- Could not GET 'https://oss.sonatype.org/content/repositories/snapshots/com/aliyun/dpa/oss-android-sdk/2.3.0-SNAPSHOT/maven-metadata.xml'. Received status code 502 from server: Bad Gateway HOT 2
- 在Android10以上,上传文件失败,原因已找到,请修复
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aliyun-oss-react-native.