1
votes

I am trying to archive an iOS app but it keeps on giving me errors. The app runs smoothly when played in an iOS device. My Xcode project is generated from Unity 4.6.7, and I'm trying to build it on Xcode 6.0. The iOS deployment target is 8.0.

Here are the errors I encountered:

Undefined symbols for architecture arm64: "__storeKitDisplayStoreWithProductId", referenced from: _StoreKitBinding__storeKitDisplayStoreWithProductId_m1449 in Bulk_Assembly-CSharp-firstpass_1.o (maybe you meant: _StoreKitBinding__storeKitDisplayStoreWithProductId_m1449_MethodInfo, _StoreKitBinding__storeKitDisplayStoreWithProductId_m1449 ) "__storeKitRestoreCompletedTransactions", referenced from: _StoreKitBinding__storeKitRestoreCompletedTransactions_m1445 in Bulk_Assembly-CSharp-firstpass_1.o _StoreKitBinding_restoreCompletedTransactions_m1446 in Bulk_Assembly-CSharp-firstpass_1.o (maybe you meant: _StoreKitBinding__storeKitRestoreCompletedTransactions_m1445,

Fix I made so far:

I removed StoreKit.framework and manually readded it to Frameworks by dragging and dropping. Also, I set the architecture to this:

Standard architectures(armv7, arm64) - $(ARCHS_STANDARD)

What else am i possibly missing?

Your response will be appreciated. Thank you!

1
Did you select IL2CPP in Scripting Backend option? File -> Build Settings -> Player Settings -> Other Settings (in IOS) -> Configuration (in Unity) - Hamza Hasan
Yes. It's the current setting of Scripting Backend. - vanxvan
did you get solution? how fixed ? - Guru

1 Answers

0
votes

Not exactly sure what the problem is here, however it looks like the problem is that you are using an older version of Xcode. Update to the latest version (7.2 at the time of writing). Also I recommend increasing your iOS deployment target to 9.0, and updating Unity to the latest version. I had a similar problem like this, which was fixed by changing the deployment target to the latest. I haven't used Unity in a while, but I suspect that there could be an error in the Unity build. I highly encourage you contact Apple, or Unity on this issue.