Compilation error after linking lottie-ios
I tried to link lottie-ios but I have a compilation error.
Lottie works fine with the android emulator.
Here is what I did:
1. npm i --save lottie-react-native@2.3.2
2. react-native link lottie-ios
3. react-native link lottie-react-native
4. After this, open the Xcode project configuration and add the Lottie.framework as Embedded Binaries
I have multiple compilation errors starting by this one:
/Users/user/Code/CSULB/CECS_543/anacodiam_ios/node_modules/lottie-react-native/src/ios/../../../react-native/ReactCommon/fabric/graphics/platform/ios/float.h:8:10: fatal error: "limits" file not found
#include <limits>
While building module "UIKit" imported from /Users/user/Code/CSULB/CECS_543/anacodiam_ios/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTViewManager.h:8:
While building module "Foundation" imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In file included from <module-includes>:1: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module "CoreFoundation"
#include <CoreFoundation/CoreFoundation.h>
My React-native version:
react-native -V
0.57.4
Screenshots
Here is my project settings (File > Project Settings):
https://imgur.com/MgyNqDj
My general settings:
https://imgur.com/HoghSUA
My Header Search paths: https://imgur.com/Hd5ngHh
I added $(SRCROOT)/../node_modules/react-native/React/
as recommanded in this issue Github
And my build phases:
https://imgur.com/cg630rS
Thank you in advance.
ios react-native lottie
add a comment |
I tried to link lottie-ios but I have a compilation error.
Lottie works fine with the android emulator.
Here is what I did:
1. npm i --save lottie-react-native@2.3.2
2. react-native link lottie-ios
3. react-native link lottie-react-native
4. After this, open the Xcode project configuration and add the Lottie.framework as Embedded Binaries
I have multiple compilation errors starting by this one:
/Users/user/Code/CSULB/CECS_543/anacodiam_ios/node_modules/lottie-react-native/src/ios/../../../react-native/ReactCommon/fabric/graphics/platform/ios/float.h:8:10: fatal error: "limits" file not found
#include <limits>
While building module "UIKit" imported from /Users/user/Code/CSULB/CECS_543/anacodiam_ios/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTViewManager.h:8:
While building module "Foundation" imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In file included from <module-includes>:1: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module "CoreFoundation"
#include <CoreFoundation/CoreFoundation.h>
My React-native version:
react-native -V
0.57.4
Screenshots
Here is my project settings (File > Project Settings):
https://imgur.com/MgyNqDj
My general settings:
https://imgur.com/HoghSUA
My Header Search paths: https://imgur.com/Hd5ngHh
I added $(SRCROOT)/../node_modules/react-native/React/
as recommanded in this issue Github
And my build phases:
https://imgur.com/cg630rS
Thank you in advance.
ios react-native lottie
1
Don't use react-native link. It doesn't work in most of case. Using manual linking facebook.github.io/react-native/docs/linking-libraries-ios
– anhtu
Nov 13 '18 at 3:01
add a comment |
I tried to link lottie-ios but I have a compilation error.
Lottie works fine with the android emulator.
Here is what I did:
1. npm i --save lottie-react-native@2.3.2
2. react-native link lottie-ios
3. react-native link lottie-react-native
4. After this, open the Xcode project configuration and add the Lottie.framework as Embedded Binaries
I have multiple compilation errors starting by this one:
/Users/user/Code/CSULB/CECS_543/anacodiam_ios/node_modules/lottie-react-native/src/ios/../../../react-native/ReactCommon/fabric/graphics/platform/ios/float.h:8:10: fatal error: "limits" file not found
#include <limits>
While building module "UIKit" imported from /Users/user/Code/CSULB/CECS_543/anacodiam_ios/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTViewManager.h:8:
While building module "Foundation" imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In file included from <module-includes>:1: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module "CoreFoundation"
#include <CoreFoundation/CoreFoundation.h>
My React-native version:
react-native -V
0.57.4
Screenshots
Here is my project settings (File > Project Settings):
https://imgur.com/MgyNqDj
My general settings:
https://imgur.com/HoghSUA
My Header Search paths: https://imgur.com/Hd5ngHh
I added $(SRCROOT)/../node_modules/react-native/React/
as recommanded in this issue Github
And my build phases:
https://imgur.com/cg630rS
Thank you in advance.
ios react-native lottie
I tried to link lottie-ios but I have a compilation error.
Lottie works fine with the android emulator.
Here is what I did:
1. npm i --save lottie-react-native@2.3.2
2. react-native link lottie-ios
3. react-native link lottie-react-native
4. After this, open the Xcode project configuration and add the Lottie.framework as Embedded Binaries
I have multiple compilation errors starting by this one:
/Users/user/Code/CSULB/CECS_543/anacodiam_ios/node_modules/lottie-react-native/src/ios/../../../react-native/ReactCommon/fabric/graphics/platform/ios/float.h:8:10: fatal error: "limits" file not found
#include <limits>
While building module "UIKit" imported from /Users/user/Code/CSULB/CECS_543/anacodiam_ios/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTViewManager.h:8:
While building module "Foundation" imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In file included from <module-includes>:1: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module "CoreFoundation"
#include <CoreFoundation/CoreFoundation.h>
My React-native version:
react-native -V
0.57.4
Screenshots
Here is my project settings (File > Project Settings):
https://imgur.com/MgyNqDj
My general settings:
https://imgur.com/HoghSUA
My Header Search paths: https://imgur.com/Hd5ngHh
I added $(SRCROOT)/../node_modules/react-native/React/
as recommanded in this issue Github
And my build phases:
https://imgur.com/cg630rS
Thank you in advance.
ios react-native lottie
ios react-native lottie
asked Nov 13 '18 at 1:31
Jérémy OcteauJérémy Octeau
266
266
1
Don't use react-native link. It doesn't work in most of case. Using manual linking facebook.github.io/react-native/docs/linking-libraries-ios
– anhtu
Nov 13 '18 at 3:01
add a comment |
1
Don't use react-native link. It doesn't work in most of case. Using manual linking facebook.github.io/react-native/docs/linking-libraries-ios
– anhtu
Nov 13 '18 at 3:01
1
1
Don't use react-native link. It doesn't work in most of case. Using manual linking facebook.github.io/react-native/docs/linking-libraries-ios
– anhtu
Nov 13 '18 at 3:01
Don't use react-native link. It doesn't work in most of case. Using manual linking facebook.github.io/react-native/docs/linking-libraries-ios
– anhtu
Nov 13 '18 at 3:01
add a comment |
1 Answer
1
active
oldest
votes
As Anhtu said, automatic linking might be broken for lottie.
Also, I had the same compilation problem : you should update lottie-react-native
to latest version (2.5.9 at this date), they fixed their iOS project header search path
setting.
In version 2.5.8, their project referenced React
folder with recursive option, which caused the CodeFoundation build error. (this used to be recommended by ReactNative, but it has changed since : https://facebook.github.io/react-native/docs/linking-libraries-ios)
They've removed this header search path
since 2.5.9, and now this CoreFoundation error has gone !
Thank you very much! I updated the version of lottie-react-native and it fixed every compilation errors I had. (They could have updated their doc...)
– Jérémy Octeau
Nov 13 '18 at 18:24
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53272484%2fcompilation-error-after-linking-lottie-ios%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
As Anhtu said, automatic linking might be broken for lottie.
Also, I had the same compilation problem : you should update lottie-react-native
to latest version (2.5.9 at this date), they fixed their iOS project header search path
setting.
In version 2.5.8, their project referenced React
folder with recursive option, which caused the CodeFoundation build error. (this used to be recommended by ReactNative, but it has changed since : https://facebook.github.io/react-native/docs/linking-libraries-ios)
They've removed this header search path
since 2.5.9, and now this CoreFoundation error has gone !
Thank you very much! I updated the version of lottie-react-native and it fixed every compilation errors I had. (They could have updated their doc...)
– Jérémy Octeau
Nov 13 '18 at 18:24
add a comment |
As Anhtu said, automatic linking might be broken for lottie.
Also, I had the same compilation problem : you should update lottie-react-native
to latest version (2.5.9 at this date), they fixed their iOS project header search path
setting.
In version 2.5.8, their project referenced React
folder with recursive option, which caused the CodeFoundation build error. (this used to be recommended by ReactNative, but it has changed since : https://facebook.github.io/react-native/docs/linking-libraries-ios)
They've removed this header search path
since 2.5.9, and now this CoreFoundation error has gone !
Thank you very much! I updated the version of lottie-react-native and it fixed every compilation errors I had. (They could have updated their doc...)
– Jérémy Octeau
Nov 13 '18 at 18:24
add a comment |
As Anhtu said, automatic linking might be broken for lottie.
Also, I had the same compilation problem : you should update lottie-react-native
to latest version (2.5.9 at this date), they fixed their iOS project header search path
setting.
In version 2.5.8, their project referenced React
folder with recursive option, which caused the CodeFoundation build error. (this used to be recommended by ReactNative, but it has changed since : https://facebook.github.io/react-native/docs/linking-libraries-ios)
They've removed this header search path
since 2.5.9, and now this CoreFoundation error has gone !
As Anhtu said, automatic linking might be broken for lottie.
Also, I had the same compilation problem : you should update lottie-react-native
to latest version (2.5.9 at this date), they fixed their iOS project header search path
setting.
In version 2.5.8, their project referenced React
folder with recursive option, which caused the CodeFoundation build error. (this used to be recommended by ReactNative, but it has changed since : https://facebook.github.io/react-native/docs/linking-libraries-ios)
They've removed this header search path
since 2.5.9, and now this CoreFoundation error has gone !
answered Nov 13 '18 at 10:12
VinzzzVinzzz
10.4k42738
10.4k42738
Thank you very much! I updated the version of lottie-react-native and it fixed every compilation errors I had. (They could have updated their doc...)
– Jérémy Octeau
Nov 13 '18 at 18:24
add a comment |
Thank you very much! I updated the version of lottie-react-native and it fixed every compilation errors I had. (They could have updated their doc...)
– Jérémy Octeau
Nov 13 '18 at 18:24
Thank you very much! I updated the version of lottie-react-native and it fixed every compilation errors I had. (They could have updated their doc...)
– Jérémy Octeau
Nov 13 '18 at 18:24
Thank you very much! I updated the version of lottie-react-native and it fixed every compilation errors I had. (They could have updated their doc...)
– Jérémy Octeau
Nov 13 '18 at 18:24
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53272484%2fcompilation-error-after-linking-lottie-ios%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Don't use react-native link. It doesn't work in most of case. Using manual linking facebook.github.io/react-native/docs/linking-libraries-ios
– anhtu
Nov 13 '18 at 3:01