Skip to content

Conversation

@kaloudis
Copy link
Contributor

This is required to prevent developers from manually changing their Foundation imports after build LNC mobile for iOS

kaloudis added a commit to lightninglabs/lnc-rn that referenced this pull request Nov 22, 2022
Makefile Outdated
mkdir -p $(IOS_BUILD_DIR)
$(GOMOBILE_BIN) bind -target=ios,iossimulator -tags="mobile $(DEV_TAGS) $(RPC_TAGS)" $(LDFLAGS_MOBILE) -v -o $(IOS_BUILD) $(MOBILE_PKG)
# modify library files for import without C++ modules
sed "s|$(IOS_STRING1)|$(IOS_STRING2)|g" $(IOS_FILE1) > $(IOS_FILE1)-temp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use sed -i.bak -E 's|$(IOS_STRING1)|$(IOS_STRING2|g' $(IOS_FILE1) to do the changes inline (with the -i.bak being the version of the flags that seems to work on both MacOS and Linux).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works like a charm. Updated.

-i by itself was driving me nuts yesterday. Thank you.

@kaloudis kaloudis force-pushed the ios-library-formatting branch from 8ecfc13 to 9071d69 Compare November 23, 2022 13:31
@kaloudis kaloudis requested a review from guggero November 28, 2022 21:07
Copy link
Contributor

@guggero guggero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't test this as I don't have an Xcode installed but change looks good to me 👍

@kaloudis kaloudis merged commit 4422761 into master Nov 29, 2022
@kaloudis kaloudis deleted the ios-library-formatting branch November 29, 2022 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants